pub struct StdHash<B = RandomState> { /* private fields */ }Expand description
A hasher built on the standard BuildHasher machinery.
The default B is std::collections::hash_map::RandomState, the same
builder that backs std::collections::HashMap.
Implementations§
Source§impl<B: BuildHasher> StdHash<B>
impl<B: BuildHasher> StdHash<B>
Sourcepub fn with_hasher(build: B) -> Self
pub fn with_hasher(build: B) -> Self
Wrap an existing BuildHasher.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for StdHash<B>where
B: Freeze,
impl<B> RefUnwindSafe for StdHash<B>where
B: RefUnwindSafe,
impl<B> Send for StdHash<B>where
B: Send,
impl<B> Sync for StdHash<B>where
B: Sync,
impl<B> Unpin for StdHash<B>where
B: Unpin,
impl<B> UnsafeUnpin for StdHash<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for StdHash<B>where
B: 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