Struct bellman::LinearCombination [] [src]

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: Clone + Engine> Clone for LinearCombination<E> where
    E::Fr: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Performs the conversion.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

Auto Trait Implementations

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

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