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: TokenKindThis is the kind of token.
text: StringThis is the text of the token.
value: ScalarValueThis is the value of the token.
start: LocationThis is the location of the start of the token.
end: LocationThis 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