[][src]Trait contrie::raw::config::Config

pub trait Config {
    type Payload: Clone + Borrow<Self::Key> + 'static;
    type Key: Hash + Eq;
}

Customization of the Raw.

This specifies how the trie should act. Maybe some more customization will be possible in the future, but for now this allows tweaking what in how is stored.

Associated Types

type Payload: Clone + Borrow<Self::Key> + 'static

The payload (eg. values) stored inside the trie.

type Key: Hash + Eq

Each payload must contain a key as its part. This is the type for the key, which is used for hashing and identification of values in the tree.

Loading content...

Implementors

impl<T> Config for Trivial<T> where
    T: Clone + Hash + Eq + 'static, 
[src]

type Payload = T

type Key = T

Loading content...