pub struct Token<'p, 'ast> {
pub span: SpanId,
pub kind: TokenKind<'p, 'ast>,
}Fields§
§span: SpanId§kind: TokenKind<'p, 'ast>Trait Implementations§
Source§impl<'p, 'ast> Ord for Token<'p, 'ast>
impl<'p, 'ast> Ord for Token<'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 Token<'p, 'ast>
impl<'p, 'ast> PartialOrd for Token<'p, 'ast>
impl<'p, 'ast> Copy for Token<'p, 'ast>
impl<'p, 'ast> Eq for Token<'p, 'ast>
impl<'p, 'ast> StructuralPartialEq for Token<'p, 'ast>
Auto Trait Implementations§
impl<'p, 'ast> Freeze for Token<'p, 'ast>
impl<'p, 'ast> RefUnwindSafe for Token<'p, 'ast>
impl<'p, 'ast> Send for Token<'p, 'ast>
impl<'p, 'ast> Sync for Token<'p, 'ast>
impl<'p, 'ast> Unpin for Token<'p, 'ast>
impl<'p, 'ast> UnwindSafe for Token<'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.