[−][src]Enum storage_proofs::circuit::variables::Root
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]
&self,
cs: CS
) -> Result<AllocatedNum<E>, SynthesisError>
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]
E::Fr: Clone,
fn clone(&self) -> Root<E>
[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,
<E as ScalarEngine>::Fr: Unpin,
impl<E> Send for Root<E> where
<E as ScalarEngine>::Fr: Send,
<E as ScalarEngine>::Fr: Send,
impl<E> Sync for Root<E> where
<E as ScalarEngine>::Fr: Sync,
<E as ScalarEngine>::Fr: Sync,
impl<E> UnwindSafe for Root<E> where
<E as ScalarEngine>::Fr: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
impl<E> RefUnwindSafe for Root<E> where
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,