Struct bellperson::LinearCombination [−][src]
pub struct LinearCombination<E: ScalarEngine>(_);
Expand description
This represents a linear combination of some variables, with coefficients in the scalar field of a pairing-friendly elliptic curve group.
Implementations
impl<E: ScalarEngine> LinearCombination<E>
[src]
impl<E: ScalarEngine> LinearCombination<E>
[src]Trait Implementations
impl<'a, E: ScalarEngine> Add<&'a LinearCombination<E>> for LinearCombination<E>
[src]
impl<'a, E: ScalarEngine> Add<&'a LinearCombination<E>> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the +
operator.
fn add(self, other: &'a LinearCombination<E>) -> LinearCombination<E>
[src]
fn add(self, other: &'a LinearCombination<E>) -> LinearCombination<E>
[src]Performs the +
operation. Read more
impl<'a, E: ScalarEngine> Add<(<E as ScalarEngine>::Fr, &'a LinearCombination<E>)> for LinearCombination<E>
[src]
impl<'a, E: ScalarEngine> Add<(<E as ScalarEngine>::Fr, &'a LinearCombination<E>)> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the +
operator.
fn add(
self,
(coeff, other): (E::Fr, &'a LinearCombination<E>)
) -> LinearCombination<E>
[src]
fn add(
self,
(coeff, other): (E::Fr, &'a LinearCombination<E>)
) -> LinearCombination<E>
[src]Performs the +
operation. Read more
impl<E: ScalarEngine> Add<(<E as ScalarEngine>::Fr, Variable)> for LinearCombination<E>
[src]
impl<E: ScalarEngine> Add<(<E as ScalarEngine>::Fr, Variable)> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the +
operator.
impl<E: ScalarEngine> Add<Variable> for LinearCombination<E>
[src]
impl<E: ScalarEngine> Add<Variable> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the +
operator.
fn add(self, other: Variable) -> LinearCombination<E>
[src]
fn add(self, other: Variable) -> LinearCombination<E>
[src]Performs the +
operation. Read more
impl<E: Clone + ScalarEngine> Clone for LinearCombination<E> where
E::Fr: Clone,
[src]
impl<E: Clone + ScalarEngine> Clone for LinearCombination<E> where
E::Fr: Clone,
[src]fn clone(&self) -> LinearCombination<E>
[src]
fn clone(&self) -> LinearCombination<E>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<E: ScalarEngine> Default for LinearCombination<E>
[src]
impl<E: ScalarEngine> Default for LinearCombination<E>
[src]impl<'a, E: ScalarEngine> Sub<&'a LinearCombination<E>> for LinearCombination<E>
[src]
impl<'a, E: ScalarEngine> Sub<&'a LinearCombination<E>> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the -
operator.
fn sub(self, other: &'a LinearCombination<E>) -> LinearCombination<E>
[src]
fn sub(self, other: &'a LinearCombination<E>) -> LinearCombination<E>
[src]Performs the -
operation. Read more
impl<'a, E: ScalarEngine> Sub<(<E as ScalarEngine>::Fr, &'a LinearCombination<E>)> for LinearCombination<E>
[src]
impl<'a, E: ScalarEngine> Sub<(<E as ScalarEngine>::Fr, &'a LinearCombination<E>)> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the -
operator.
fn sub(
self,
(coeff, other): (E::Fr, &'a LinearCombination<E>)
) -> LinearCombination<E>
[src]
fn sub(
self,
(coeff, other): (E::Fr, &'a LinearCombination<E>)
) -> LinearCombination<E>
[src]Performs the -
operation. Read more
impl<E: ScalarEngine> Sub<(<E as ScalarEngine>::Fr, Variable)> for LinearCombination<E>
[src]
impl<E: ScalarEngine> Sub<(<E as ScalarEngine>::Fr, Variable)> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the -
operator.
impl<E: ScalarEngine> Sub<Variable> for LinearCombination<E>
[src]
impl<E: ScalarEngine> Sub<Variable> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the -
operator.
fn sub(self, other: Variable) -> LinearCombination<E>
[src]
fn sub(self, other: Variable) -> LinearCombination<E>
[src]Performs the -
operation. Read more
Auto Trait Implementations
impl<E> RefUnwindSafe for LinearCombination<E> where
<E as ScalarEngine>::Fr: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
impl<E> Send for LinearCombination<E>
impl<E> Sync for LinearCombination<E>
impl<E> Unpin for LinearCombination<E> where
<E as ScalarEngine>::Fr: Unpin,
<E as ScalarEngine>::Fr: Unpin,
impl<E> UnwindSafe for LinearCombination<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>,