pub enum Token<'source> {
LParen,
RParen,
Keyword(&'source str),
Int(Sign, NumBase, &'source str),
Float(Sign, Float<'source>),
String(Cow<'source, [u8]>, &'source str),
Ident(&'source str),
}Variants§
LParen
RParen
Keyword(&'source str)
Int(Sign, NumBase, &'source str)
Float(Sign, Float<'source>)
String(Cow<'source, [u8]>, &'source str)
Ident(&'source str)
Trait Implementations§
Auto Trait Implementations§
impl<'source> Freeze for Token<'source>
impl<'source> RefUnwindSafe for Token<'source>
impl<'source> Send for Token<'source>
impl<'source> Sync for Token<'source>
impl<'source> Unpin for Token<'source>
impl<'source> UnwindSafe for Token<'source>
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