[−][src]Enum bm_le::Value
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> AsRef<[u8]> for Value<I, E> where
E: AsRef<[u8]>,
I: AsRef<[u8]>, [src]
E: AsRef<[u8]>,
I: AsRef<[u8]>,
impl<I, E> PartialEq<Value<I, E>> for Value<I, E> where
E: PartialEq<E>,
I: PartialEq<I>, [src]
E: PartialEq<E>,
I: PartialEq<I>,
impl<I, E> Eq for Value<I, E> where
E: Eq,
I: Eq, [src]
E: Eq,
I: Eq,
impl<I, E> Clone for Value<I, E> where
E: Clone,
I: Clone, [src]
E: Clone,
I: Clone,
fn clone(&self) -> Value<I, E>[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]
E: Debug,
I: Debug,
Auto Trait Implementations
impl<I, E> Unpin for Value<I, E> where
E: Unpin,
I: Unpin,
E: Unpin,
I: Unpin,
impl<I, E> Send for Value<I, E> where
E: Send,
I: Send,
E: Send,
I: Send,
impl<I, E> Sync for Value<I, E> where
E: Sync,
I: Sync,
E: Sync,
I: Sync,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> Same<T> for T[src]
type Output = T
Should always be Self