[][src]Enum storage_proofs::circuit::apex_commitment::BinaryApexCommitment

pub enum BinaryApexCommitment<E: JubjubEngine> {
    Leaf(AllocatedNum<E>),
    Branch(Box<BinaryApexCommitment<E>>, Box<BinaryApexCommitment<E>>),
}

Variants

Leaf(AllocatedNum<E>)Branch(Box<BinaryApexCommitment<E>>, Box<BinaryApexCommitment<E>>)

Trait Implementations

impl<E: JubjubEngine> ApexCommitment<E> for BinaryApexCommitment<E>[src]

fn commit<CS: ConstraintSystem<E>>(
    cs: &mut CS,
    allocated_nums: &[AllocatedNum<E>],
    params: &E::Params
) -> Result<(Self, AllocatedNum<E>), SynthesisError> where
    Self: Sized
[src]

impl<E: Clone + JubjubEngine> Clone for BinaryApexCommitment<E>[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<E> Unpin for BinaryApexCommitment<E> where
    <E as ScalarEngine>::Fr: Unpin

impl<E> Send for BinaryApexCommitment<E> where
    <E as ScalarEngine>::Fr: Send

impl<E> Sync for BinaryApexCommitment<E> where
    <E as ScalarEngine>::Fr: Sync

impl<E> UnwindSafe for BinaryApexCommitment<E> where
    <E as ScalarEngine>::Fr: UnwindSafe

impl<E> RefUnwindSafe for BinaryApexCommitment<E> where
    <E as ScalarEngine>::Fr: 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>,