pub struct Expansion {
pub name: String,
pub invocation: SourceRange,
pub definition: SourceRange,
pub parent: Option<Arc<Expansion>>,
}Expand description
One macro expansion a token came out of.
Fields§
§name: StringThe macro’s name.
invocation: SourceRangeThe range of the invocation: the name for an object-like macro, the
name through the closing ) for a function-like one.
definition: SourceRangeWhere the macro’s name was written in its #define.
parent: Option<Arc<Expansion>>The expansion this one was produced inside, if any.
Trait Implementations§
impl Eq for Expansion
impl StructuralPartialEq for Expansion
Auto Trait Implementations§
impl Freeze for Expansion
impl RefUnwindSafe for Expansion
impl Send for Expansion
impl Sync for Expansion
impl Unpin for Expansion
impl UnsafeUnpin for Expansion
impl UnwindSafe for Expansion
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