[−][src]Struct sapling_crypto_ce::circuit::num::Num
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]
self,
variable: &AllocatedNum<E>,
coeff: E::Fr
) -> Self
pub fn add_bool_with_coeff(
self,
one: Variable,
bit: &Boolean,
coeff: E::Fr
) -> Self
[src]
self,
one: Variable,
bit: &Boolean,
coeff: E::Fr
) -> Self
pub fn mut_add_number_with_coeff(
&mut self,
variable: &AllocatedNum<E>,
coeff: E::Fr
)
[src]
&mut self,
variable: &AllocatedNum<E>,
coeff: E::Fr
)
pub fn mut_add_bool_with_coeff(
&mut self,
one: Variable,
bit: &Boolean,
coeff: E::Fr
)
[src]
&mut self,
one: Variable,
bit: &Boolean,
coeff: E::Fr
)
pub fn add_assign(&mut self, other: &Self)
[src]
Trait Implementations
impl<E: Engine> From<AllocatedNum<E>> for Num<E>
[src]
fn from(num: AllocatedNum<E>) -> Num<E>
[src]
impl<E: Engine> Clone for Num<E>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<E> Send for Num<E> where
<E as ScalarEngine>::Fr: Send,
<E as ScalarEngine>::Fr: Send,
impl<E> Sync for Num<E> where
<E as ScalarEngine>::Fr: Sync,
<E as ScalarEngine>::Fr: Sync,
impl<E> Unpin for Num<E> where
<E as ScalarEngine>::Fr: Unpin,
<E as ScalarEngine>::Fr: Unpin,
impl<E> UnwindSafe for Num<E> where
<E as ScalarEngine>::Fr: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
impl<E> RefUnwindSafe for Num<E> where
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> 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> Same<T> for T
type Output = T
Should always be Self