[][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, S> Leak for LengthMixed<R, C, S> where
    C: Construct,
    R: RootStatus,
    S: Sequence<Construct = C, RootStatus = Dangling> + Leak
[src]

type Metadata = (<C as Construct>::Value, <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>>,
    V: ArrayLength<u8>,
    <C as Construct>::Value: From<usize>,
    <C as Construct>::Value: Into<usize>,
    <C as Construct>::Value: From<GenericArray<u8, H>>, 
[src]

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

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>>,
    V: ArrayLength<u8>,
    <C as Construct>::Value: From<GenericArray<u8, H>>, 
[src]

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

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

type Metadata = <C as Construct>::Value

Loading content...

Implementors

impl<R, C> Leak for List<R, C> where
    C: Construct,
    R: RootStatus,
    <C as Construct>::Value: From<usize>,
    <C as Construct>::Value: 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 = (<C as Construct>::Value, usize, Option<u64>)

Loading content...