[][src]Struct ckb_merkle_mountain_range::MerkleProof

pub struct MerkleProof<Elem> { /* fields omitted */ }

Methods

impl<Elem: MerkleElem + PartialEq + Debug> MerkleProof<Elem>[src]

pub fn new(mmr_size: u64, proof: Vec<Elem>) -> Self[src]

pub fn verify(&self, root: Elem, pos: u64, elem: Elem) -> Result<bool>[src]

Trait Implementations

impl<Elem: Debug> Debug for MerkleProof<Elem>[src]

Auto Trait Implementations

impl<Elem> Send for MerkleProof<Elem> where
    Elem: Send

impl<Elem> Unpin for MerkleProof<Elem> where
    Elem: Unpin

impl<Elem> Sync for MerkleProof<Elem> where
    Elem: Sync

impl<Elem> UnwindSafe for MerkleProof<Elem> where
    Elem: UnwindSafe

impl<Elem> RefUnwindSafe for MerkleProof<Elem> where
    Elem: RefUnwindSafe

Blanket Implementations

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> 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]