pub enum AllocationMode {
Constant = 0,
Input = 1,
Witness = 2,
}
Expand description
Describes the mode that a variable should be allocated in within
a ConstraintSystem
.
Variants§
Constant = 0
Indicate to the ConstraintSystem
that the high-level variable should
be allocated as a constant. That is, no Variable
s should be
generated.
Input = 1
Indicate to the ConstraintSystem
that the high-level variable should
be allocated as a public input to the ConstraintSystem
.
Witness = 2
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 for AllocationMode
impl PartialEq for AllocationMode
Source§impl PartialOrd for AllocationMode
impl PartialOrd for AllocationMode
impl Copy for AllocationMode
impl Eq for AllocationMode
impl StructuralPartialEq for AllocationMode
Auto Trait Implementations§
impl Freeze for AllocationMode
impl RefUnwindSafe for AllocationMode
impl Send for AllocationMode
impl Sync for AllocationMode
impl Unpin for AllocationMode
impl UnwindSafe for AllocationMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more