Struct chalk_parse::parser::Token
pub(crate) struct Token<'input>(pub usize, pub &'input str);
Tuple Fields§
§0: usize
§1: &'input str
Trait Implementations§
§impl<'input> Ord for Token<'input>
impl<'input> Ord for Token<'input>
§impl<'input> PartialEq for Token<'input>
impl<'input> PartialEq for Token<'input>
§impl<'input> PartialOrd for Token<'input>
impl<'input> PartialOrd for Token<'input>
§fn partial_cmp(&self, other: &Token<'input>) -> Option<Ordering>
fn partial_cmp(&self, other: &Token<'input>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'input> Eq for Token<'input>
impl<'input> StructuralPartialEq for Token<'input>
Auto Trait Implementations§
impl<'input> Freeze for Token<'input>
impl<'input> RefUnwindSafe for Token<'input>
impl<'input> Send for Token<'input>
impl<'input> Sync for Token<'input>
impl<'input> Unpin for Token<'input>
impl<'input> UnwindSafe for Token<'input>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)