Enum ark_r1cs_std::alloc::AllocationMode
source · pub enum AllocationMode {
Constant,
Input,
Witness,
}
Expand description
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 Variable
s 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§
Trait Implementations§
source§impl Clone for AllocationMode
impl Clone for AllocationMode
source§fn clone(&self) -> AllocationMode
fn clone(&self) -> AllocationMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AllocationMode
impl Debug for AllocationMode
source§impl Ord for AllocationMode
impl Ord for AllocationMode
source§fn cmp(&self, other: &AllocationMode) -> Ordering
fn cmp(&self, other: &AllocationMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<AllocationMode> for AllocationMode
impl PartialEq<AllocationMode> for AllocationMode
source§fn eq(&self, other: &AllocationMode) -> bool
fn eq(&self, other: &AllocationMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AllocationMode> for AllocationMode
impl PartialOrd<AllocationMode> for AllocationMode
source§fn partial_cmp(&self, other: &AllocationMode) -> Option<Ordering>
fn partial_cmp(&self, other: &AllocationMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AllocationMode
impl Eq for AllocationMode
impl StructuralEq for AllocationMode
impl StructuralPartialEq for AllocationMode
Auto Trait Implementations§
impl RefUnwindSafe for AllocationMode
impl Send for AllocationMode
impl Sync for AllocationMode
impl Unpin for AllocationMode
impl UnwindSafe for AllocationMode
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more