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 I
The part of the input stream that this token represents.
location: Location
Location (with span) in the input file where this token is found.
Trait Implementations§
Auto Trait Implementations§
impl<'i, I, TK> Freeze for Token<'i, I, TK>
impl<'i, I, TK> RefUnwindSafe for Token<'i, I, TK>
impl<'i, I, TK> Send for Token<'i, I, TK>
impl<'i, I, TK> Sync for Token<'i, I, TK>
impl<'i, I, TK> Unpin for Token<'i, I, TK>
impl<'i, I, TK> UnwindSafe for Token<'i, I, TK>
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