[][src]Struct static_merkle_tree::Proof

pub struct Proof<T>(pub Vec<ProofNode<T>>);

Methods

impl<T> Proof<T> where
    T: Default + Clone + PartialEq
[src]

pub fn verify<M>(&self, root: &T, data: T, merge: M) -> bool where
    M: Fn(&T, &T) -> T, 
[src]

Trait Implementations

impl<T: Clone> Clone for Proof<T>[src]

impl<T: Debug> Debug for Proof<T>[src]

Auto Trait Implementations

impl<T> Send for Proof<T> where
    T: Send

impl<T> Sync for Proof<T> where
    T: Sync

impl<T> Unpin for Proof<T> where
    T: Unpin

impl<T> UnwindSafe for Proof<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Proof<T> where
    T: RefUnwindSafe

Blanket Implementations

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

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

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.

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

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

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