[][src]Struct fetch_modi::dave::Modus

pub struct Modus<T> where
    T: Fn(&str) -> usize
{ pub items: [Option<String>; 10], pub hash_function: T, pub detect_collisions: bool, }

Fields

items: [Option<String>; 10]hash_function: Tdetect_collisions: bool

Methods

impl<T> Modus<T> where
    T: Fn(&str) -> usize
[src]

pub fn new(func: T) -> Modus<T>[src]

pub fn toggle_collisions(&mut self)[src]

pub fn add(&mut self, keystr: &str) -> InsertResult[src]

pub fn get(&mut self, key: &str) -> FetchResult[src]

Trait Implementations

impl<T> Display for Modus<T> where
    T: Fn(&str) -> usize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Modus<T> where
    T: RefUnwindSafe

impl<T> Send for Modus<T> where
    T: Send

impl<T> Sync for Modus<T> where
    T: Sync

impl<T> Unpin for Modus<T> where
    T: Unpin

impl<T> UnwindSafe for Modus<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,