pub struct Token<'i, I: Input + ?Sized, TK> {
    pub kind: TK,
    pub value: &'i I,
    pub location: Location,
}Expand description
Represents a single token from the input stream.
Fields§
§kind: TK§value: &'i IThe part of the input stream that this token represents.
location: LocationLocation (with span) in the input file where this token is found.
Trait Implementations§
Auto Trait Implementations§
impl<'i, I: ?Sized, TK> RefUnwindSafe for Token<'i, I, TK>where
    I: RefUnwindSafe,
    TK: RefUnwindSafe,
impl<'i, I: ?Sized, TK> Send for Token<'i, I, TK>
impl<'i, I: ?Sized, TK> Sync for Token<'i, I, TK>
impl<'i, I: ?Sized, TK> Unpin for Token<'i, I, TK>where
    TK: Unpin,
impl<'i, I: ?Sized, TK> UnwindSafe for Token<'i, I, TK>where
    I: RefUnwindSafe,
    TK: 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