pub struct Token<T> {
pub kind: T,
pub span: Span,
}Expand description
Represents a token in the source code.
Fields§
§kind: TThe kind of token
span: SpanThe span in the source code where the token is located.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Token<T>where
T: Freeze,
impl<T> RefUnwindSafe for Token<T>where
T: RefUnwindSafe,
impl<T> Send for Token<T>where
T: Send,
impl<T> Sync for Token<T>where
T: Sync,
impl<T> Unpin for Token<T>where
T: Unpin,
impl<T> UnwindSafe for Token<T>where
T: UnwindSafe,
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