pub enum TokenKind<'p, 'ast> {
EndOfFile,
Whitespace,
Comment,
Simple(STokenKind),
OtherOp(&'ast str),
Ident(InternedStr<'p>),
Number(Number<'ast>),
String(&'ast str),
TextBlock(&'ast str),
}Variants§
EndOfFile
Whitespace
Comment
Simple(STokenKind)
OtherOp(&'ast str)
Ident(InternedStr<'p>)
Number(Number<'ast>)
String(&'ast str)
TextBlock(&'ast str)
Trait Implementations§
Source§impl<'p, 'ast> Ord for TokenKind<'p, 'ast>
impl<'p, 'ast> Ord for TokenKind<'p, 'ast>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'p, 'ast> PartialOrd for TokenKind<'p, 'ast>
impl<'p, 'ast> PartialOrd for TokenKind<'p, 'ast>
impl<'p, 'ast> Copy for TokenKind<'p, 'ast>
impl<'p, 'ast> Eq for TokenKind<'p, 'ast>
impl<'p, 'ast> StructuralPartialEq for TokenKind<'p, 'ast>
Auto Trait Implementations§
impl<'p, 'ast> Freeze for TokenKind<'p, 'ast>
impl<'p, 'ast> RefUnwindSafe for TokenKind<'p, 'ast>
impl<'p, 'ast> Send for TokenKind<'p, 'ast>
impl<'p, 'ast> Sync for TokenKind<'p, 'ast>
impl<'p, 'ast> Unpin for TokenKind<'p, 'ast>
impl<'p, 'ast> UnwindSafe for TokenKind<'p, 'ast>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.