Struct bellperson::gadgets::num::Num [−][src]
pub struct Num<E: ScalarEngine> { /* fields omitted */ }
Implementations
impl<E: ScalarEngine> Num<E>
[src]
impl<E: ScalarEngine> 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 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 add(self, other: &Self) -> Self
[src]
pub fn scale(self, scalar: E::Fr) -> Self
[src]
Trait Implementations
impl<E: ScalarEngine> From<AllocatedNum<E>> for Num<E>
[src]
impl<E: ScalarEngine> From<AllocatedNum<E>> for Num<E>
[src]fn from(num: AllocatedNum<E>) -> Num<E>
[src]
fn from(num: AllocatedNum<E>) -> Num<E>
[src]Performs the conversion.
Auto Trait Implementations
impl<E> RefUnwindSafe for Num<E> where
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
impl<E> Send for Num<E>
impl<E> Sync for Num<E>
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,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,