pub trait BytellConfig:
Default
+ Clone
+ Send
+ Sync
+ Sized {
type ConcreteHashToIndex: HashToIndex;
type ConcreteBuildHasher: BuildHasher;
type ConcreteAllocator: Allocator;
// Required methods
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;
}Expand description
The actual bytell hash table configuration trait.
Required Associated Types§
type ConcreteHashToIndex: HashToIndex
type ConcreteBuildHasher: BuildHasher
type ConcreteAllocator: Allocator
Required Methods§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.