pub struct HashCmOptions<S = RandomState> {
pub hasher: S,
pub capacity: Option<usize>,
}
Expand description
Options for the HashCm
.
Fields§
§hasher: S
The hasher used by the conflict manager.
capacity: Option<usize>
The initialized capacity of the conflict manager.
Implementations§
Source§impl<S> HashCmOptions<S>
impl<S> HashCmOptions<S>
Sourcepub const fn new(hasher: S) -> HashCmOptions<S>
pub const fn new(hasher: S) -> HashCmOptions<S>
Creates a new HashCmOptions
with the given hasher.
Sourcepub const fn with_capacity(hasher: S, capacity: usize) -> HashCmOptions<S>
pub const fn with_capacity(hasher: S, capacity: usize) -> HashCmOptions<S>
Creates a new HashCmOptions
with the given hasher and capacity.
Trait Implementations§
Source§impl<S> Clone for HashCmOptions<S>where
S: Clone,
impl<S> Clone for HashCmOptions<S>where
S: Clone,
Source§fn clone(&self) -> HashCmOptions<S>
fn clone(&self) -> HashCmOptions<S>
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<S> Debug for HashCmOptions<S>where
S: Debug,
impl<S> Debug for HashCmOptions<S>where
S: Debug,
Source§impl<S> Default for HashCmOptions<S>where
S: Default,
impl<S> Default for HashCmOptions<S>where
S: Default,
Source§fn default() -> HashCmOptions<S>
fn default() -> HashCmOptions<S>
Returns the “default value” for a type. Read more
Source§impl<S> Hash for HashCmOptions<S>where
S: Hash,
impl<S> Hash for HashCmOptions<S>where
S: Hash,
Source§impl<S> PartialEq for HashCmOptions<S>where
S: PartialEq,
impl<S> PartialEq for HashCmOptions<S>where
S: PartialEq,
impl<S> Copy for HashCmOptions<S>where
S: Copy,
impl<S> Eq for HashCmOptions<S>where
S: Eq,
impl<S> StructuralPartialEq for HashCmOptions<S>
Auto Trait Implementations§
impl<S> Freeze for HashCmOptions<S>where
S: Freeze,
impl<S> RefUnwindSafe for HashCmOptions<S>where
S: RefUnwindSafe,
impl<S> Send for HashCmOptions<S>where
S: Send,
impl<S> Sync for HashCmOptions<S>where
S: Sync,
impl<S> Unpin for HashCmOptions<S>where
S: Unpin,
impl<S> UnwindSafe for HashCmOptions<S>where
S: 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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.