pub struct Token {
pub kind: TokenKind,
pub loc: SourceLoc,
pub space_before: bool,
}Fields§
§kind: TokenKind§loc: SourceLoc§space_before: boolWhether whitespace (or a comment) appeared before this token.
Used by the parser to distinguish abuttal from blank concatenation,
and function calls (name() from concat-with-parens (name ().
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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