[][src]Struct bellperson::Variable

pub struct Variable(_);

Represents a variable in our constraint system.

Implementations

impl Variable[src]

pub fn new_unchecked(idx: Index) -> Variable[src]

This constructs a variable with an arbitrary index. Circuit implementations are not recommended to use this.

pub fn get_unchecked(&self) -> Index[src]

This returns the index underlying the variable. Circuit implementations are not recommended to use this.

Trait Implementations

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

type Output = LinearCombination<E>

The resulting type after applying the + operator.

impl Clone for Variable[src]

impl Copy for Variable[src]

impl Debug for Variable[src]

impl Eq for Variable[src]

impl Hash for Variable[src]

impl PartialEq<Variable> for Variable[src]

impl StructuralEq for Variable[src]

impl StructuralPartialEq for Variable[src]

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

type Output = LinearCombination<E>

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,