[][src]Trait bm::Leak

pub trait Leak {
    type Metadata;
    fn from_leaked(metadata: Self::Metadata) -> Self;
fn metadata(&self) -> Self::Metadata; }

Leakable value, whose default behavior of drop is to leak.

Associated Types

type Metadata

Metadata to represent this merkle struct.

Loading content...

Required methods

fn from_leaked(metadata: Self::Metadata) -> Self

Initialize from a previously leaked value.

fn metadata(&self) -> Self::Metadata

Metadata of the value.

Loading content...

Implementors

impl<R: RootStatus, DB: Backend> Leak for List<R, DB> where
    EndOf<DB>: From<usize> + Into<usize>, 
[src]

type Metadata = <LengthMixed<R, DB, Vector<Dangling, DB>> as Leak>::Metadata

impl<R: RootStatus, DB: Backend> Leak for Raw<R, DB>[src]

type Metadata = ValueOf<DB>

impl<R: RootStatus, DB: Backend> Leak for Vector<R, DB>[src]

type Metadata = (ValueOf<DB>, usize, Option<usize>)

impl<R: RootStatus, DB: Backend, S> Leak for LengthMixed<R, DB, S> where
    S: Sequence<Backend = DB, RootStatus = Dangling> + Leak
[src]

type Metadata = (ValueOf<DB>, S::Metadata)

impl<R: RootStatus, DB: Backend, T, H: ArrayLength<u8>, V: ArrayLength<u8>> Leak for PackedList<R, DB, T, H, V> where
    EndOf<DB>: From<usize> + Into<usize> + From<GenericArray<u8, H>> + Into<GenericArray<u8, H>>,
    T: From<GenericArray<u8, V>> + Into<GenericArray<u8, V>>, 
[src]

type Metadata = <LengthMixed<R, DB, Vector<Dangling, DB>> as Leak>::Metadata

impl<R: RootStatus, DB: Backend, T, H: ArrayLength<u8>, V: ArrayLength<u8>> Leak for PackedVector<R, DB, T, H, V> where
    EndOf<DB>: From<GenericArray<u8, H>> + Into<GenericArray<u8, H>>,
    T: From<GenericArray<u8, V>> + Into<GenericArray<u8, V>>, 
[src]

type Metadata = (ValueOf<DB>, usize, Option<usize>)

Loading content...