[][src]Struct contrie::raw::config::Trivial

pub struct Trivial<T>(_);

A trivial config, where the payload and the key are the same thing.

Trait Implementations

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

type Payload = T

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

type Key = T

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. Read more

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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