pub struct DefaultCommonality(/* private fields */);
Expand description
A commonality based on the Default trait.
Important: This type’s implementation of Commonality is valid only if T::default() == T::default()
. Any type with a valid Eq implementation satisfies this requirement, but many
types like f64
and Vec<f64>
also satisfy this requirement, despite not implementing Eq.
A TotalHashMap or TotalBTreeMap using this commonality only stores entries with non-default values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DefaultCommonality
impl RefUnwindSafe for DefaultCommonality
impl Send for DefaultCommonality
impl Sync for DefaultCommonality
impl Unpin for DefaultCommonality
impl UnwindSafe for DefaultCommonality
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