pub struct Sorted<X, T>(pub X, pub T);
Tuple Fields§
§0: X
§1: T
Implementations§
Trait Implementations§
Source§impl<X: Ord, T: Ord> Ord for Sorted<X, T>
impl<X: Ord, T: Ord> Ord for Sorted<X, T>
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<X: PartialOrd, T: PartialOrd> PartialOrd for Sorted<X, T>
impl<X: PartialOrd, T: PartialOrd> PartialOrd for Sorted<X, T>
impl<X: Copy, T: Copy> Copy for Sorted<X, T>
impl<X: Eq, T: Eq> Eq for Sorted<X, T>
Auto Trait Implementations§
impl<X, T> Freeze for Sorted<X, T>
impl<X, T> RefUnwindSafe for Sorted<X, T>where
X: RefUnwindSafe,
T: RefUnwindSafe,
impl<X, T> Send for Sorted<X, T>
impl<X, T> Sync for Sorted<X, T>
impl<X, T> Unpin for Sorted<X, T>
impl<X, T> UnwindSafe for Sorted<X, T>where
X: 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