#[repr(transparent)]pub struct OrdToTreeOrd<T: Ord>(pub T);Expand description
Wrapper that implements TreeOrd with a no-op Tracker for any T: Ord.
It may be important to implement TreeOrd manually for large and
complicated T.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Ord + Ord> Ord for OrdToTreeOrd<T>
impl<T: Ord + Ord> Ord for OrdToTreeOrd<T>
Source§fn cmp(&self, other: &OrdToTreeOrd<T>) -> Ordering
fn cmp(&self, other: &OrdToTreeOrd<T>) -> Ordering
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 + Ord> PartialOrd for OrdToTreeOrd<T>
impl<T: PartialOrd + Ord> PartialOrd for OrdToTreeOrd<T>
Source§impl<T: Ord> TreeOrd for OrdToTreeOrd<T>
impl<T: Ord> TreeOrd for OrdToTreeOrd<T>
impl<T: Eq + Ord> Eq for OrdToTreeOrd<T>
impl<T: Ord> StructuralPartialEq for OrdToTreeOrd<T>
Auto Trait Implementations§
impl<T> Freeze for OrdToTreeOrd<T>where
T: Freeze,
impl<T> RefUnwindSafe for OrdToTreeOrd<T>where
T: RefUnwindSafe,
impl<T> Send for OrdToTreeOrd<T>where
T: Send,
impl<T> Sync for OrdToTreeOrd<T>where
T: Sync,
impl<T> Unpin for OrdToTreeOrd<T>where
T: Unpin,
impl<T> UnwindSafe for OrdToTreeOrd<T>where
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