Skip to main content

BytellConfig

Trait BytellConfig 

Source
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§

Required Methods§

Source

fn build_hasher(&self) -> &Self::ConcreteBuildHasher

Source

fn hash_to_index(&self) -> &Self::ConcreteHashToIndex

Source

fn hash_to_index_mut(&mut self) -> &mut Self::ConcreteHashToIndex

Source

fn allocator(&self) -> &Self::ConcreteAllocator

Source

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.

Implementors§