pub struct RticMacroBuilder { /* private fields */ }
Expand description
This should be used to compose an RTIC distribution. In other words, it allows building the RTIC app macro By providing the necessary low-level hardware bindings and binding additional Compilation Passes in the case syntax extensions are desired.
Implementations§
source§impl RticMacroBuilder
impl RticMacroBuilder
pub fn new<T: CorePassBackend + 'static>(core_impl: T) -> Self
sourcepub fn bind_pre_core_pass<P: RticPass + 'static>(
&mut self,
pass: P,
) -> &mut Self
pub fn bind_pre_core_pass<P: RticPass + 'static>( &mut self, pass: P, ) -> &mut Self
Binds a Compilation Pass that will run before the Core Pass
sourcepub fn bind_post_core_pass<P: RticPass + 'static>(
&mut self,
pass: P,
) -> &mut Self
pub fn bind_post_core_pass<P: RticPass + 'static>( &mut self, pass: P, ) -> &mut Self
Binds a Compilation Pass that will run after the Core Pass
sourcepub fn build_rtic_macro(
self,
args: TokenStream,
input: TokenStream,
) -> TokenStream
pub fn build_rtic_macro( self, args: TokenStream, input: TokenStream, ) -> TokenStream
Once the CorePass low level hardware bindings are provided, and a selection of Compilation Passes are binded too, use this method to run the app proc macro logic.
Returns a TokenStream of the expanded user application.
Auto Trait Implementations§
impl Freeze for RticMacroBuilder
impl !RefUnwindSafe for RticMacroBuilder
impl !Send for RticMacroBuilder
impl !Sync for RticMacroBuilder
impl Unpin for RticMacroBuilder
impl !UnwindSafe for RticMacroBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more