Struct txn_core::sync::HashCmOptions
source · pub struct HashCmOptions<S> {
pub hasher: S,
pub capacity: Option<usize>,
}
Expand description
Options for the HashCm
.
Fields§
§hasher: S
§capacity: Option<usize>
Implementations§
source§impl<S> HashCmOptions<S>
impl<S> HashCmOptions<S>
sourcepub const fn with_capacity(hasher: S, capacity: usize) -> Self
pub const fn with_capacity(hasher: S, capacity: usize) -> Self
Creates a new HashCmOptions
with the given hasher and capacity.
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