[][src]Struct storage_proofs::zigzag_graph::ZigZagGraph

pub struct ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H> + 'static, 
{ pub reversed: bool, // some fields omitted }

Fields

reversed: bool

Methods

impl<H, G> ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H>, 
[src]

pub fn new(
    base_graph: Option<G>,
    nodes: usize,
    base_degree: usize,
    expansion_degree: usize,
    seed: [u32; 7]
) -> Self
[src]

Trait Implementations

impl<'a, H, G> Layerable<H> for ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H> + 'static, 
[src]

impl<H, G> ParameterSetMetadata for ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H> + ParameterSetMetadata
[src]

impl<'a, H, G> ZigZag for ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H>, 
[src]

type BaseHasher = H

type BaseGraph = G

fn zigzag(&self) -> Self[src]

To zigzag a graph, we just toggle its reversed field. All the real work happens when we calculate node parents on-demand.

impl<H, G> PartialEq<ZigZagGraph<H, G>> for ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H>, 
[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl<H: Clone, G: Clone> Clone for ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H> + 'static, 
[src]

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

Performs copy-assignment from source. Read more

impl<H, G> Eq for ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H>, 
[src]

impl<H: Debug, G: Debug> Debug for ZigZagGraph<H, G> where
    H: Hasher,
    G: Graph<H> + 'static, 
[src]

Auto Trait Implementations

impl<H, G> Unpin for ZigZagGraph<H, G> where
    G: Unpin,
    H: Unpin

impl<H, G> Send for ZigZagGraph<H, G> where
    G: Send

impl<H, G> Sync for ZigZagGraph<H, G> where
    G: Sync

impl<H, G> UnwindSafe for ZigZagGraph<H, G> where
    G: UnwindSafe,
    H: UnwindSafe

impl<H, G> RefUnwindSafe for ZigZagGraph<H, G> where
    G: RefUnwindSafe,
    H: RefUnwindSafe

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