[][src]Enum bm_le::Value

pub enum Value<I, E> {
    Intermediate(I),
    End(E),
}

Value in a merkle tree.

Variants

Intermediate(I)

Intermediate, which is hash of two sub-items.

End(E)

End value of the tree.

Methods

impl<I, E> Value<I, E>[src]

pub fn intermediate(self) -> Option<I>[src]

Return Some if this value is an intermediate, otherwise return None.

pub fn end(self) -> Option<E>[src]

Return Some if this value is an end value, otherwise return None.

Trait Implementations

impl<I, E> Eq for Value<I, E> where
    E: Eq,
    I: Eq
[src]

impl<I, E> AsRef<[u8]> for Value<I, E> where
    E: AsRef<[u8]>,
    I: AsRef<[u8]>, 
[src]

impl<I, E> PartialEq<Value<I, E>> for Value<I, E> where
    E: PartialEq<E>,
    I: PartialEq<I>, 
[src]

impl<I, E> Clone for Value<I, E> where
    E: Clone,
    I: Clone
[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<I, E> Debug for Value<I, E> where
    E: Debug,
    I: Debug
[src]

Auto Trait Implementations

impl<I, E> Send for Value<I, E> where
    E: Send,
    I: Send

impl<I, E> Unpin for Value<I, E> where
    E: Unpin,
    I: Unpin

impl<I, E> Sync for Value<I, E> where
    E: Sync,
    I: Sync

impl<I, E> UnwindSafe for Value<I, E> where
    E: UnwindSafe,
    I: UnwindSafe

impl<I, E> RefUnwindSafe for Value<I, E> where
    E: RefUnwindSafe,
    I: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self