pub struct Token {
pub kind: TokenKind,
pub line: usize,
pub col: usize,
pub lo: u32,
pub hi: u32,
}Fields§
§kind: TokenKind§line: usize§col: usize§lo: u32Byte offset of the token’s first byte into the source.
hi: u32Byte offset one past the token’s last byte.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Token
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