pub struct DefaultHashTraits;Expand description
The default HashTraits implementation for a HashTable.
The hash value of a key is the value returned by its DefaultHashable::hash_key.
Trait Implementations§
Source§impl Clone for DefaultHashTraits
impl Clone for DefaultHashTraits
impl Copy for DefaultHashTraits
Source§impl Debug for DefaultHashTraits
impl Debug for DefaultHashTraits
Source§impl Default for DefaultHashTraits
impl Default for DefaultHashTraits
Source§impl<K: DefaultHashable + ?Sized> HashTraits<K> for DefaultHashTraits
impl<K: DefaultHashable + ?Sized> HashTraits<K> for DefaultHashTraits
Auto Trait Implementations§
impl Freeze for DefaultHashTraits
impl RefUnwindSafe for DefaultHashTraits
impl Send for DefaultHashTraits
impl Sync for DefaultHashTraits
impl Unpin for DefaultHashTraits
impl UnsafeUnpin for DefaultHashTraits
impl UnwindSafe for DefaultHashTraits
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), !>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more