[][src]Trait bm_le::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...

Implementations on Foreign Types

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

type Metadata = (Value<<DB as Backend>::Intermediate, <DB as Backend>::End>, usize, Option<usize>)

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

type Metadata = Value<<DB as Backend>::Intermediate, <DB as Backend>::End>

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

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

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

type Metadata = (Value<<DB as Backend>::Intermediate, <DB as Backend>::End>, <S as Leak>::Metadata)

Loading content...

Implementors

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

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

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

type Metadata = (Value<<DB as Backend>::Intermediate, <DB as Backend>::End>, usize, Option<usize>)

Loading content...