pub struct Token<T, M> {
pub item: T,
pub ty: M,
}Fields§
§item: T§ty: MImplementations§
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: PartialOrd, M: PartialOrd> PartialOrd for Token<T, M>
impl<T: PartialOrd, M: PartialOrd> PartialOrd for Token<T, M>
impl<T: Eq, M: Eq> Eq for Token<T, M>
impl<T, M> StructuralPartialEq for Token<T, M>
Auto Trait Implementations§
impl<T, M> Freeze for Token<T, M>
impl<T, M> RefUnwindSafe for Token<T, M>where
T: RefUnwindSafe,
M: 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
T: UnwindSafe,
M: 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