pub struct Token {
pub kind: TokenKind,
pub text: String,
pub value: ScalarValue,
pub start: Location,
pub end: Location,
}
Expand description
This represents a lexical token in CFG source.
Fields§
§kind: TokenKind
This is the kind of token.
text: String
This is the text of the token.
value: ScalarValue
This is the value of the token.
start: Location
This is the location of the start of the token.
end: Location
This is the location of the end of the token.
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 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