[][src]Struct storage_proofs::drgraph::BucketGraph

pub struct BucketGraph<H: Hasher> { /* fields omitted */ }

Bucket sampling algorithm.

Trait Implementations

impl<H: Hasher> Graph<H> for BucketGraph<H>[src]

fn expected_size(&self) -> usize[src]

Returns the expected size of all nodes in the graph.

fn merkle_tree<'a>(
    &self,
    data: &'a [u8]
) -> Result<MerkleTree<H::Domain, H::Function>>
[src]

Builds a merkle tree based on the given data.

fn merkle_tree_aux<'a>(
    &self,
    data: &'a [u8],
    parallel: bool
) -> Result<MerkleTree<H::Domain, H::Function>>
[src]

Builds a merkle tree based on the given data.

fn merkle_tree_depth(&self) -> u64[src]

Returns the merkle tree depth.

fn forward(&self) -> bool[src]

impl<H: Hasher> ParameterSetMetadata for BucketGraph<H>[src]

impl<H: PartialEq + Hasher> PartialEq<BucketGraph<H>> for BucketGraph<H>[src]

impl<H: Clone + Hasher> Clone for BucketGraph<H>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<H: Eq + Hasher> Eq for BucketGraph<H>[src]

impl<H: Copy + Hasher> Copy for BucketGraph<H>[src]

impl<H: Debug + Hasher> Debug for BucketGraph<H>[src]

Auto Trait Implementations

impl<H> Unpin for BucketGraph<H> where
    H: Unpin

impl<H> Sync for BucketGraph<H>

impl<H> Send for BucketGraph<H>

impl<H> RefUnwindSafe for BucketGraph<H> where
    H: RefUnwindSafe

impl<H> UnwindSafe for BucketGraph<H> where
    H: UnwindSafe

Blanket Implementations

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,