Struct solana_merkle_tree::merkle_tree::MerkleTree[][src]

pub struct MerkleTree { /* fields omitted */ }

Implementations

impl MerkleTree[src]

pub fn new<T: AsRef<[u8]>>(items: &[T]) -> Self[src]

pub fn get_root(&self) -> Option<&Hash>[src]

pub fn find_path(&self, index: usize) -> Option<Proof<'_>>[src]

Trait Implementations

impl Debug for MerkleTree[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

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> 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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,