pub struct DefaultBytellConfig<TAllocator: Allocator> { /* private fields */ }Expand description
The default configuration for BytellHashTable.
It uses SipHashBuilder as the default hasher and FibonacciHashToIndex as the default hash-to-index policy.
Additionally it uses 0.9375 as the default max load factor.
Implementations§
Source§impl<TAllocator: Allocator> DefaultBytellConfig<TAllocator>
impl<TAllocator: Allocator> DefaultBytellConfig<TAllocator>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new DefaultBytellConfig with the default allocator.
Sourcepub fn with_allocator(allocator: TAllocator) -> Self
pub fn with_allocator(allocator: TAllocator) -> Self
Creates a new DefaultBytellConfig with the specified allocator.
Trait Implementations§
Source§impl<TAllocator: Allocator> BytellConfig for DefaultBytellConfig<TAllocator>
impl<TAllocator: Allocator> BytellConfig for DefaultBytellConfig<TAllocator>
type ConcreteHashToIndex = FibonacciHashToIndex
type ConcreteBuildHasher = GeneralSipHashBuilder<2, 4>
type ConcreteAllocator = TAllocator
fn build_hasher(&self) -> &Self::ConcreteBuildHasher
fn hash_to_index(&self) -> &Self::ConcreteHashToIndex
fn hash_to_index_mut(&mut self) -> &mut Self::ConcreteHashToIndex
fn allocator(&self) -> &Self::ConcreteAllocator
fn load_factor(&self) -> MaxLoadFactor
Source§impl<TAllocator: Allocator> Clone for DefaultBytellConfig<TAllocator>
impl<TAllocator: Allocator> Clone for DefaultBytellConfig<TAllocator>
Source§impl<TAllocator: Allocator> Default for DefaultBytellConfig<TAllocator>
impl<TAllocator: Allocator> Default for DefaultBytellConfig<TAllocator>
Auto Trait Implementations§
impl<TAllocator> Freeze for DefaultBytellConfig<TAllocator>where
TAllocator: Freeze,
impl<TAllocator> RefUnwindSafe for DefaultBytellConfig<TAllocator>where
TAllocator: RefUnwindSafe,
impl<TAllocator> Send for DefaultBytellConfig<TAllocator>
impl<TAllocator> Sync for DefaultBytellConfig<TAllocator>
impl<TAllocator> Unpin for DefaultBytellConfig<TAllocator>where
TAllocator: Unpin,
impl<TAllocator> UnsafeUnpin for DefaultBytellConfig<TAllocator>where
TAllocator: UnsafeUnpin,
impl<TAllocator> UnwindSafe for DefaultBytellConfig<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