pub struct HashWrapper<T: Hash + Hashable> {
pub inner: T,
}
Expand description
A hash-ordered wrapper that modifies Ord
and PartialOrd
.
Fields§
§inner: T
The inner value, freely modifiable.
Trait Implementations§
Source§impl<T> Abomonation for HashWrapper<T>
impl<T> Abomonation for HashWrapper<T>
Source§impl<T: Clone + Hash + Hashable> Clone for HashWrapper<T>
impl<T: Clone + Hash + Hashable> Clone for HashWrapper<T>
Source§fn clone(&self) -> HashWrapper<T>
fn clone(&self) -> HashWrapper<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Default + Hash + Hashable> Default for HashWrapper<T>
impl<T: Default + Hash + Hashable> Default for HashWrapper<T>
Source§fn default() -> HashWrapper<T>
fn default() -> HashWrapper<T>
Returns the “default value” for a type. Read more
Source§impl<T: Ord + PartialOrd + Hash + Hashable> Ord for HashWrapper<T>
impl<T: Ord + PartialOrd + Hash + Hashable> Ord for HashWrapper<T>
Source§impl<T: PartialOrd + Hash + Hashable> PartialOrd for HashWrapper<T>
impl<T: PartialOrd + Hash + Hashable> PartialOrd for HashWrapper<T>
impl<T: Copy + Hash + Hashable> Copy for HashWrapper<T>
impl<T: Eq + Hash + Hashable> Eq for HashWrapper<T>
impl<T: Hash + Hashable> HashOrdered for HashWrapper<T>
impl<T: Hash + Hashable> StructuralPartialEq for HashWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for HashWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for HashWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for HashWrapper<T>where
T: Send,
impl<T> Sync for HashWrapper<T>where
T: Sync,
impl<T> Unpin for HashWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for HashWrapper<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