Enum ark_r1cs_std::alloc::AllocationMode[][src]

pub enum AllocationMode {
    Constant,
    Input,
    Witness,
}

Describes the mode that a variable should be allocated in within a ConstraintSystem.

Variants

Constant

Indicate to the ConstraintSystem that the high-level variable should be allocated as a constant. That is, no Variables should be generated.

Input

Indicate to the ConstraintSystem that the high-level variable should be allocated as a public input to the ConstraintSystem.

Witness

Indicate to the ConstraintSystem that the high-level variable should be allocated as a private witness to the ConstraintSystem.

Implementations

impl AllocationMode[src]

pub fn max(&self, other: Self) -> Self[src]

Outputs the maximum according to the relation Constant < Input < Witness.

Trait Implementations

impl Clone for AllocationMode[src]

impl Copy for AllocationMode[src]

impl Debug for AllocationMode[src]

impl Eq for AllocationMode[src]

impl Ord for AllocationMode[src]

impl PartialEq<AllocationMode> for AllocationMode[src]

impl PartialOrd<AllocationMode> for AllocationMode[src]

impl StructuralEq for AllocationMode[src]

impl StructuralPartialEq for AllocationMode[src]

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> Instrument for T[src]

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