Struct bitsy::testbench::testbench_grammar::Token
source · pub(crate) struct Token<'input>(pub usize, pub &'input str);
Tuple Fields§
§0: usize
§1: &'input str
Trait Implementations§
source§impl<'input> Ord for Token<'input>
impl<'input> Ord for Token<'input>
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<'input> PartialEq for Token<'input>
impl<'input> PartialEq for Token<'input>
source§impl<'input> PartialOrd for Token<'input>
impl<'input> PartialOrd for Token<'input>
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> StructuralEq for Token<'input>
impl<'input> StructuralPartialEq for Token<'input>
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.