[][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, C> Leak for Raw<R, C> where
    C: Construct,
    R: RootStatus
[src]

type Metadata = Value<<C as Construct>::Intermediate, <C as Construct>::End>

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

type Metadata = (Value<<C as Construct>::Intermediate, <C as Construct>::End>, usize, Option<usize>)

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

type Metadata = (Value<<C as Construct>::Intermediate, <C as Construct>::End>, <S as Leak>::Metadata)

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

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

Loading content...

Implementors

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

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

impl<R, C> Leak for Vector<R, C> where
    C: Construct,
    R: RootStatus
[src]

type Metadata = (Value<<C as Construct>::Intermediate, <C as Construct>::End>, usize, Option<usize>)

Loading content...