pub struct Token<T, M> {
pub item: T,
pub ty: M,
}
Fields§
§item: T
§ty: M
Implementations§
Trait Implementations§
source§impl<T: Ord, M: Ord> Ord for Token<T, M>
impl<T: Ord, M: Ord> Ord for Token<T, M>
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<T: PartialEq, M: PartialEq> PartialEq for Token<T, M>
impl<T: PartialEq, M: PartialEq> PartialEq for Token<T, M>
source§impl<T: PartialOrd, M: PartialOrd> PartialOrd for Token<T, M>
impl<T: PartialOrd, M: PartialOrd> PartialOrd for Token<T, M>
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<T: Eq, M: Eq> Eq for Token<T, M>
impl<T, M> StructuralEq for Token<T, M>
impl<T, M> StructuralPartialEq for Token<T, M>
Auto Trait Implementations§
impl<T, M> RefUnwindSafe for Token<T, M>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, M> Send for Token<T, M>
impl<T, M> Sync for Token<T, M>
impl<T, M> Unpin for Token<T, M>
impl<T, M> UnwindSafe for Token<T, M>where
M: UnwindSafe,
T: UnwindSafe,
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