pub struct DefaultAbseilConfig<TAllocator: Allocator> { /* private fields */ }Expand description
The default configuration for AbseilHashTable.
It uses sip hash as the default hasher.
Additionally it uses 0.875 as the default max load factor.
Implementations§
Source§impl<TAllocator: Allocator> DefaultAbseilConfig<TAllocator>
impl<TAllocator: Allocator> DefaultAbseilConfig<TAllocator>
Sourcepub fn new() -> Selfwhere
TAllocator: Default,
pub fn new() -> Selfwhere
TAllocator: Default,
Creates a new DefaultAbseilConfig with the default allocator.
Sourcepub fn with_allocator(allocator: TAllocator) -> Self
pub fn with_allocator(allocator: TAllocator) -> Self
Creates a new DefaultAbseilConfig with the specified allocator.
Trait Implementations§
Source§impl<TAllocator: Allocator> AbseilConfig for DefaultAbseilConfig<TAllocator>
impl<TAllocator: Allocator> AbseilConfig for DefaultAbseilConfig<TAllocator>
type ConcreteBuildHasher = DefaultHashBuilder
type ConcreteAllocator = TAllocator
fn build_hasher(&self) -> &Self::ConcreteBuildHasher
fn allocator_mut(&mut self) -> &mut Self::ConcreteAllocator
fn load_factor(&self) -> MaxLoadFactor
fn calculate_partial_hashes<T: Hash>(&self, value: T) -> (u64, u8)
Source§impl<TAllocator: Allocator + Default> Default for DefaultAbseilConfig<TAllocator>
impl<TAllocator: Allocator + Default> Default for DefaultAbseilConfig<TAllocator>
Source§impl<TAllocator: Allocator> ReprC for DefaultAbseilConfig<TAllocator>
impl<TAllocator: Allocator> ReprC for DefaultAbseilConfig<TAllocator>
impl<TAllocator: Allocator + Send> Send for DefaultAbseilConfig<TAllocator>where
MaxLoadFactor: Send,
impl<TAllocator: Allocator + Sync> Sync for DefaultAbseilConfig<TAllocator>where
MaxLoadFactor: Sync,
Auto Trait Implementations§
impl<TAllocator> Freeze for DefaultAbseilConfig<TAllocator>where
TAllocator: Freeze,
impl<TAllocator> RefUnwindSafe for DefaultAbseilConfig<TAllocator>where
TAllocator: RefUnwindSafe,
impl<TAllocator> Unpin for DefaultAbseilConfig<TAllocator>where
TAllocator: Unpin,
impl<TAllocator> UnsafeUnpin for DefaultAbseilConfig<TAllocator>where
TAllocator: UnsafeUnpin,
impl<TAllocator> UnwindSafe for DefaultAbseilConfig<TAllocator>where
TAllocator: 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