pub struct MacroLibrary { /* private fields */ }Expand description
A build’s macros, loaded from their sources.
Implementations§
Source§impl MacroLibrary
impl MacroLibrary
Trait Implementations§
Source§impl ProcMacros for MacroLibrary
impl ProcMacros for MacroLibrary
Source§fn call(&self, name: &str, input: &str) -> Option<Result<String, String>>
fn call(&self, name: &str, input: &str) -> Option<Result<String, String>>
name!(input): the code it writes, or why it failed; None: no
such macro.Auto Trait Implementations§
impl Freeze for MacroLibrary
impl RefUnwindSafe for MacroLibrary
impl Send for MacroLibrary
impl Sync for MacroLibrary
impl Unpin for MacroLibrary
impl UnsafeUnpin for MacroLibrary
impl UnwindSafe for MacroLibrary
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