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: 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 copy 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<'de, T> Deserialize<'de> for HashWrapper<T>
impl<'de, T> Deserialize<'de> for HashWrapper<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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>
Source§impl<T> Serialize for HashWrapper<T>
impl<T> Serialize 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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> PreferredContainer for T
impl<T> PreferredContainer for T
Source§impl<T> ProgressEventTimestamp for T
impl<T> ProgressEventTimestamp for T
Source§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign
, for types that do not implement AddAssign
.