[][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, C: Construct> Leak for List<R, C> where
    C::Value: From<usize> + Into<usize>, 
[src]

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

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

type Metadata = C::Value

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

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

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

type Metadata = (C::Value, S::Metadata)

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

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

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

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

Loading content...