[][src]Enum merkle_trees::merkle_patricia_trie::HashOrNode

pub enum HashOrNode<H, V> {
    Hash(H),
    Node(NodeType<H, V>),
}

Either hash of a serialized node or a node

Variants

Hash(H)
Node(NodeType<H, V>)

Trait Implementations

impl<H: Clone, V: Clone> Clone for HashOrNode<H, V>[src]

impl<H: Debug, V: Debug> Debug for HashOrNode<H, V>[src]

impl<H, V> Default for HashOrNode<H, V>[src]

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

impl<H: PartialEq, V: PartialEq> PartialEq<HashOrNode<H, V>> for HashOrNode<H, V>[src]

impl<H, V> Serialize for HashOrNode<H, V> where
    H: Serialize,
    V: Serialize
[src]

impl<H, V> StructuralPartialEq for HashOrNode<H, V>[src]

Auto Trait Implementations

impl<H, V> RefUnwindSafe for HashOrNode<H, V> where
    H: RefUnwindSafe,
    V: RefUnwindSafe

impl<H, V> Send for HashOrNode<H, V> where
    H: Send,
    V: Send

impl<H, V> Sync for HashOrNode<H, V> where
    H: Sync,
    V: Sync

impl<H, V> Unpin for HashOrNode<H, V> where
    H: Unpin,
    V: Unpin

impl<H, V> UnwindSafe for HashOrNode<H, V> where
    H: UnwindSafe,
    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.