pub struct LexToken {
pub kind: LexTokenKind,
pub text: String,
pub line: usize,
pub col: usize,
}Expand description
A basic token produced by a lexer.
Fields§
§kind: LexTokenKind§text: String§line: usize§col: usizeImplementations§
Trait Implementations§
impl StructuralPartialEq for LexToken
Auto Trait Implementations§
impl Freeze for LexToken
impl RefUnwindSafe for LexToken
impl Send for LexToken
impl Sync for LexToken
impl Unpin for LexToken
impl UnsafeUnpin for LexToken
impl UnwindSafe for LexToken
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