[][src]Struct sapling_crypto_ce::circuit::num::Num

pub struct Num<E: Engine> { /* fields omitted */ }

Methods

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

pub fn zero() -> Self[src]

pub fn get_value(&self) -> Option<E::Fr>[src]

pub fn lc(&self, coeff: E::Fr) -> LinearCombination<E>[src]

pub fn scale(&mut self, coeff: E::Fr)[src]

pub fn add_number_with_coeff(
    self,
    variable: &AllocatedNum<E>,
    coeff: E::Fr
) -> Self
[src]

pub fn add_bool_with_coeff(
    self,
    one: Variable,
    bit: &Boolean,
    coeff: E::Fr
) -> Self
[src]

pub fn mut_add_number_with_coeff(
    &mut self,
    variable: &AllocatedNum<E>,
    coeff: E::Fr
)
[src]

pub fn mut_add_bool_with_coeff(
    &mut self,
    one: Variable,
    bit: &Boolean,
    coeff: E::Fr
)
[src]

pub fn add_assign(&mut self, other: &Self)[src]

Trait Implementations

impl<E: Engine> From<AllocatedNum<E>> for Num<E>[src]

impl<E: Engine> Clone for Num<E>[src]

Auto Trait Implementations

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

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

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

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

impl<E> RefUnwindSafe for Num<E> where
    <E as ScalarEngine>::Fr: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Same<T> for T

type Output = T

Should always be Self