Struct tetsy_trie_standardmap::StandardMap[][src]

pub struct StandardMap {
    pub alphabet: Alphabet,
    pub min_key: usize,
    pub journal_key: usize,
    pub value_mode: ValueMode,
    pub count: u32,
}

Standard test map for profiling tries.

Fields

alphabet: Alphabet

The alphabet to use for keys.

min_key: usize

Minimum size of key.

journal_key: usize

Delta size of key.

value_mode: ValueMode

Mode of value generation.

count: u32

Number of keys.

Implementations

impl StandardMap[src]

pub fn make(&self) -> Vec<(Vec<u8>, Vec<u8>)>[src]

Create the standard map (set of keys and values) for the object’s fields.

pub fn make_with(
    &self,
    seed: &mut <KeccakHasher as Hasher>::Out
) -> Vec<(Vec<u8>, Vec<u8>)>
[src]

Create the standard map (set of keys and values) for the object’s fields, using the given seed.

Auto Trait Implementations

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, 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.