pub struct Macro {
pub path: Path,
pub bang_token: Bang,
pub delimiter: MacroDelimiter,
pub tokens: TokenStream,
}
Expand description
A macro invocation: println!("{}", mac)
.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Fields
path: Path
bang_token: Bang
delimiter: MacroDelimiter
tokens: TokenStream
Auto Trait Implementations
impl RefUnwindSafe for Macro
impl !Send for Macro
impl !Sync for Macro
impl Unpin for Macro
impl UnwindSafe for Macro
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more