[][src]Struct r1cs::Constraint

pub struct Constraint<F: Field> {
    pub a: Expression<F>,
    pub b: Expression<F>,
    pub c: Expression<F>,
}

An rank-1 constraint of the form a * b = c, where a, b, and c are linear combinations of wires.

Fields

a: Expression<F>b: Expression<F>c: Expression<F>

Methods

impl<F: Field> Constraint<F>[src]

pub fn evaluate(&self, wire_values: &WireValues<F>) -> bool[src]

Trait Implementations

impl<F: Clone + Field> Clone for Constraint<F>[src]

impl<F: Field> Display for Constraint<F>[src]

impl<F: Debug + Field> Debug for Constraint<F>[src]

Auto Trait Implementations

impl<F> !Send for Constraint<F>

impl<F> !Sync for Constraint<F>

impl<F> Unpin for Constraint<F>

impl<F> UnwindSafe for Constraint<F> where
    F: RefUnwindSafe

impl<F> RefUnwindSafe for Constraint<F> where
    F: 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> ToString for T where
    T: Display + ?Sized
[src]

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]