pub enum Origin {
Source,
Expansion(Arc<Expansion>),
}Expand description
Where a preprocessed token came from.
Variants§
Source
The token was written where Token::range says it was.
Expansion(Arc<Expansion>)
The token came out of a macro’s replacement list; Token::range is
the range of the invocation.
Implementations§
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Freeze for Origin
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Origin
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