[][src]Enum storage_proofs::circuit::variables::Root

pub enum Root<E: Engine> {
    Var(AllocatedNum<E>),
    Val(Option<E::Fr>),
}

Root represents a root commitment which may be either a raw value or an already-allocated number. This allows subcomponents to depend on roots which may optionally be shared with their parent or sibling components.

Variants

Var(AllocatedNum<E>)Val(Option<E::Fr>)

Methods

impl<E: Engine> Root<E>[src]

pub fn allocated<CS: ConstraintSystem<E>>(
    &self,
    cs: CS
) -> Result<AllocatedNum<E>, SynthesisError>
[src]

pub fn var<CS: ConstraintSystem<E>>(cs: CS, fr: E::Fr) -> Self[src]

pub fn is_some(&self) -> bool[src]

Trait Implementations

impl<E: Clone + Engine> Clone for Root<E> where
    E::Fr: Clone
[src]

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

Performs copy-assignment from source. Read more

impl<E: Engine> Debug for Root<E>[src]

Auto Trait Implementations

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

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

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

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

impl<E> RefUnwindSafe for Root<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>,