[][src]Struct merkle_trees::merkle_patricia_trie::Leaf

pub struct Leaf<V> { /* fields omitted */ }

Methods

impl<V> Leaf<V>[src]

pub fn new(path: Vec<u8>, value: V) -> Self[src]

pub fn has_path(&self, path: &[u8]) -> bool[src]

Trait Implementations

impl<V: Clone> Clone for Leaf<V>[src]

impl<V: Debug> Debug for Leaf<V>[src]

impl<'de, V> Deserialize<'de> for Leaf<V> where
    V: Deserialize<'de>, 
[src]

impl<V: PartialEq> PartialEq<Leaf<V>> for Leaf<V>[src]

impl<V> Serialize for Leaf<V> where
    V: Serialize
[src]

impl<V> StructuralPartialEq for Leaf<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for Leaf<V> where
    V: RefUnwindSafe

impl<V> Send for Leaf<V> where
    V: Send

impl<V> Sync for Leaf<V> where
    V: Sync

impl<V> Unpin for Leaf<V> where
    V: Unpin

impl<V> UnwindSafe for Leaf<V> where
    V: UnwindSafe

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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.