pub enum Token<'a> {
}Expand description
One lexical unit in a physical file.
Variants§
Id(Cow<'a, [u8]>)
#42.
Text(Cow<'a, [u8]>)
A quoted string body, still escaped.
Binary(Cow<'a, [u8]>)
A binary literal body.
Keyword(Cow<'a, [u8]>)
A dotted keyword or enumeration name, without dots.
Name(Cow<'a, [u8]>)
A bare identifier or physical-file marker.
Integer(Cow<'a, [u8]>)
Integer lexical bytes.
Real(Cow<'a, [u8]>)
Real lexical bytes.
Dollar
$.
Star
*.
OpenParen
(.
CloseParen
).
Comma
,.
Equals
=.
Semicolon
;.
Trait Implementations§
impl<'a> StructuralPartialEq for Token<'a>
Auto Trait Implementations§
impl<'a> Freeze for Token<'a>
impl<'a> RefUnwindSafe for Token<'a>
impl<'a> Send for Token<'a>
impl<'a> Sync for Token<'a>
impl<'a> Unpin for Token<'a>
impl<'a> UnsafeUnpin for Token<'a>
impl<'a> UnwindSafe for Token<'a>
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