pub struct MacroDef {
pub name: String,
pub body: String,
pub line_offset: usize,
}Expand description
A macro defined in a macro file.
Fields§
§name: String§body: StringThe macro’s body.
line_offset: usize0-based line offset of the body within its file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MacroDef
impl RefUnwindSafe for MacroDef
impl Send for MacroDef
impl Sync for MacroDef
impl Unpin for MacroDef
impl UnsafeUnpin for MacroDef
impl UnwindSafe for MacroDef
Blanket Implementations§
impl<T> Allocation for T
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