pub struct TokenInfo {
token: Token,
line: u32,
col: u32,
}Expand description
A small wrapper around a Token that also contains line and column info.
This just lets the lexer and parser output meaningful error messages so
a user knows where a mistake may have been made.
Fields§
§token: Token§line: u32§col: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TokenInfo
impl RefUnwindSafe for TokenInfo
impl Send for TokenInfo
impl Sync for TokenInfo
impl Unpin for TokenInfo
impl UnsafeUnpin for TokenInfo
impl UnwindSafe for TokenInfo
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