[][src]Struct bellperson::LinearCombination

pub struct LinearCombination<E: Engine>(_);

This represents a linear combination of some variables, with coefficients in the scalar field of a pairing-friendly elliptic curve group.

Methods

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

Trait Implementations

impl<E: Engine> AsRef<[(Variable, <E as ScalarEngine>::Fr)]> for LinearCombination<E>[src]

impl<E: Clone + Engine> Clone for LinearCombination<E> where
    E::Fr: Clone
[src]

impl<E: Engine> Sub<(<E as ScalarEngine>::Fr, Variable)> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the - operator.

impl<E: Engine> Sub<Variable> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the - operator.

impl<'a, E: Engine> Sub<&'a LinearCombination<E>> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the - operator.

impl<'a, E: Engine> Sub<(<E as ScalarEngine>::Fr, &'a LinearCombination<E>)> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the - operator.

impl<E: Engine> Add<(<E as ScalarEngine>::Fr, Variable)> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the + operator.

impl<E: Engine> Add<Variable> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the + operator.

impl<'a, E: Engine> Add<&'a LinearCombination<E>> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the + operator.

impl<'a, E: Engine> Add<(<E as ScalarEngine>::Fr, &'a LinearCombination<E>)> for LinearCombination<E>[src]

type Output = LinearCombination<E>

The resulting type after applying the + operator.

Auto Trait Implementations

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

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

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

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

impl<E> RefUnwindSafe for LinearCombination<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]