[][src]Enum storage_proofs::layered_drgporep::LayerChallenges

pub enum LayerChallenges {
    Fixed {
        layers: usize,
        count: usize,
    },
    Tapered {
        layers: usize,
        count: usize,
        taper: f64,
        taper_layers: usize,
    },
}

Variants

Fixed

Fields of Fixed

layers: usizecount: usize
Tapered

Fields of Tapered

layers: usizecount: usizetaper: f64taper_layers: usize

Methods

impl LayerChallenges[src]

pub const fn new_fixed(layers: usize, count: usize) -> Self[src]

pub fn new_tapered(
    layers: usize,
    challenges: usize,
    taper_layers: usize,
    taper: f64
) -> Self
[src]

pub fn layers(&self) -> usize[src]

pub fn challenges_for_layer(&self, layer: usize) -> usize[src]

pub fn total_challenges(&self) -> usize[src]

pub fn all_challenges(&self) -> Vec<usize>[src]

Trait Implementations

impl Clone for LayerChallenges[src]

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

Performs copy-assignment from source. Read more

impl Debug for LayerChallenges[src]

Auto Trait Implementations

Blanket Implementations

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> From<T> for 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>,