pub struct CustomJumpHasher<H: Hasher + Clone> { /* private fields */ }
Expand description
A jump hash instance with a custom hash function.
Implementations§
Source§impl<H: Hasher + Clone> CustomJumpHasher<H>
impl<H: Hasher + Clone> CustomJumpHasher<H>
Sourcepub fn new(hasher: H) -> CustomJumpHasher<H>
pub fn new(hasher: H) -> CustomJumpHasher<H>
Initializes jump hash instance with a custom hash function. If the function is going to be used with untrusted inputs, it is recommended to use a non-deterministic, cryptographic hash function.
Trait Implementations§
Source§impl<H: Clone + Hasher + Clone> Clone for CustomJumpHasher<H>
impl<H: Clone + Hasher + Clone> Clone for CustomJumpHasher<H>
Source§fn clone(&self) -> CustomJumpHasher<H>
fn clone(&self) -> CustomJumpHasher<H>
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 moreimpl<H: Copy + Hasher + Clone> Copy for CustomJumpHasher<H>
Auto Trait Implementations§
impl<H> Freeze for CustomJumpHasher<H>where
H: Freeze,
impl<H> RefUnwindSafe for CustomJumpHasher<H>where
H: RefUnwindSafe,
impl<H> Send for CustomJumpHasher<H>where
H: Send,
impl<H> Sync for CustomJumpHasher<H>where
H: Sync,
impl<H> Unpin for CustomJumpHasher<H>where
H: Unpin,
impl<H> UnwindSafe for CustomJumpHasher<H>where
H: 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