Skip to main content

CMapConf

Struct CMapConf 

Source
pub struct CMapConf<CB = BuildMinimumRedundancy, LSC = OptimalLevelSize, CSB = LoMemAcceptEquals, S = BuildWyHash>{
    pub coding: CB,
    pub level_size_chooser: LSC,
    pub collision_solver: CSB,
    pub hash: S,
}
Expand description

Configuration accepted by fp::CMap constructors.

Fields§

§coding: CB§level_size_chooser: LSC§collision_solver: CSB§hash: S

The family of hash functions used by the constructed fp::CMap. (default: BuildDefaultSeededHasher)

Implementations§

Source§

impl CMapConf

Source

pub fn bpf(bits_per_fragment: u8) -> CMapConf

Source§

impl<BC> CMapConf<BC>

Source

pub fn coding(coding: BC) -> CMapConf<BC>

Source§

impl<CS> CMapConf<BuildMinimumRedundancy, OptimalLevelSize, CS>

Source

pub fn cs( collision_solver: CS, ) -> CMapConf<BuildMinimumRedundancy, OptimalLevelSize, CS>

Source§

impl<BC, CS> CMapConf<BC, OptimalLevelSize, CS>

Source

pub fn cs_coding( collision_solver: CS, coding: BC, ) -> CMapConf<BC, OptimalLevelSize, CS>

Source§

impl<LSC> CMapConf<BuildMinimumRedundancy, LSC>

Source

pub fn lsize(level_size_chooser: LSC) -> CMapConf<BuildMinimumRedundancy, LSC>

Source

pub fn lsize_bpf( level_size_chooser: LSC, bits_per_fragment: u8, ) -> CMapConf<BuildMinimumRedundancy, LSC>

Source§

impl<BC, LSC> CMapConf<BC, LSC>

Source

pub fn lsize_coding(level_size_chooser: LSC, coding: BC) -> CMapConf<BC, LSC>

Source§

impl<LSC, CS> CMapConf<BuildMinimumRedundancy, LSC, CS>

Source

pub fn lsize_cs( level_size_chooser: LSC, collision_solver: CS, ) -> CMapConf<BuildMinimumRedundancy, LSC, CS>

Source§

impl<BC, LSC, CS> CMapConf<BC, LSC, CS>

Source

pub fn lsize_cs_coding( level_size_chooser: LSC, collision_solver: CS, coding: BC, ) -> CMapConf<BC, LSC, CS>

Source§

impl<S> CMapConf<BuildMinimumRedundancy, OptimalLevelSize, LoMemAcceptEquals, S>

Source§

impl<BC, S> CMapConf<BC, OptimalLevelSize, LoMemAcceptEquals, S>

Source

pub fn hash_coding( hash: S, coding: BC, ) -> CMapConf<BC, OptimalLevelSize, LoMemAcceptEquals, S>

Source§

impl<S, CS> CMapConf<BuildMinimumRedundancy, OptimalLevelSize, CS, S>

Source

pub fn cs_hash( collision_solver: CS, hash: S, ) -> CMapConf<BuildMinimumRedundancy, OptimalLevelSize, CS, S>

Source§

impl<BC, S, CS> CMapConf<BC, OptimalLevelSize, CS, S>

Source

pub fn cs_hash_coding( collision_solver: CS, hash: S, coding: BC, ) -> CMapConf<BC, OptimalLevelSize, CS, S>

Source§

impl<LSC, S> CMapConf<BuildMinimumRedundancy, LSC, LoMemAcceptEquals, S>

Source

pub fn lsize_hash( level_size_chooser: LSC, hash: S, ) -> CMapConf<BuildMinimumRedundancy, LSC, LoMemAcceptEquals, S>

Source§

impl<BC, LSC, S> CMapConf<BC, LSC, LoMemAcceptEquals, S>

Source

pub fn lsize_hash_coding( level_size_chooser: LSC, hash: S, coding: BC, ) -> CMapConf<BC, LSC, LoMemAcceptEquals, S>

Source§

impl<LSC, CS, S> CMapConf<BuildMinimumRedundancy, LSC, CS, S>

Source

pub fn lsize_cs_hash( level_size_chooser: LSC, collision_solver: CS, hash: S, ) -> CMapConf<BuildMinimumRedundancy, LSC, CS, S>

Source§

impl<BC, LSC, CS, S> CMapConf<BC, LSC, CS, S>

Source

pub fn lsize_cs_hash_coding( level_size_chooser: LSC, collision_solver: CS, hash: S, coding: BC, ) -> CMapConf<BC, LSC, CS, S>

Trait Implementations§

Source§

impl<CB, LSC, CSB, S> Clone for CMapConf<CB, LSC, CSB, S>

Source§

fn clone(&self) -> CMapConf<CB, LSC, CSB, S>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<CB, LSC, CSB, S> Copy for CMapConf<CB, LSC, CSB, S>

Source§

impl Default for CMapConf

Source§

fn default() -> CMapConf

Returns the “default value” for a type. Read more
Source§

impl<BC, LSC, CSB, S> From<CMapConf<BC, LSC, CSB, S>> for FPCMapBuilder<BC, LSC, CSB, S>

Source§

fn from(conf: CMapConf<BC, LSC, CSB, S>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<CB, LSC, CSB, S> Freeze for CMapConf<CB, LSC, CSB, S>
where CB: Freeze, LSC: Freeze, CSB: Freeze, S: Freeze,

§

impl<CB, LSC, CSB, S> RefUnwindSafe for CMapConf<CB, LSC, CSB, S>

§

impl<CB, LSC, CSB, S> Send for CMapConf<CB, LSC, CSB, S>
where CB: Send, LSC: Send, CSB: Send, S: Send,

§

impl<CB, LSC, CSB, S> Sync for CMapConf<CB, LSC, CSB, S>
where CB: Sync, LSC: Sync, CSB: Sync, S: Sync,

§

impl<CB, LSC, CSB, S> Unpin for CMapConf<CB, LSC, CSB, S>
where CB: Unpin, LSC: Unpin, CSB: Unpin, S: Unpin,

§

impl<CB, LSC, CSB, S> UnsafeUnpin for CMapConf<CB, LSC, CSB, S>
where CB: UnsafeUnpin, LSC: UnsafeUnpin, CSB: UnsafeUnpin, S: UnsafeUnpin,

§

impl<CB, LSC, CSB, S> UnwindSafe for CMapConf<CB, LSC, CSB, S>
where CB: UnwindSafe, LSC: UnwindSafe, CSB: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.