Enum ark_relations::r1cs::Variable [−][src]
Represents the different kinds of variables present in a constraint system.
Variants
Represents the “zero” constant.
Represents of the “one” constant.
Represents a public instance variable.
Represents a private witness variable.
SymbolicLc(LcIndex)Represents of a linear combination.
Implementations
impl Variable[src]
pub fn is_zero(&self) -> bool[src]
Is self the zero variable?
pub fn is_one(&self) -> bool[src]
Is self the one variable?
pub fn is_instance(&self) -> bool[src]
Is self an instance variable?
pub fn is_witness(&self) -> bool[src]
Is self a witness variable?
pub fn is_lc(&self) -> bool[src]
Is self a linear combination?
pub fn get_lc_index(&self) -> Option<LcIndex>[src]
Get the LcIndex in self if self.is_lc().
pub fn get_index_unchecked(&self, witness_offset: usize) -> Option<usize>[src]
Returns Some(usize) if !self.is_lc(), and None otherwise.
Trait Implementations
impl<'a, F: Field> Add<&'a Variable> for LinearCombination<F>[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, other: &'a Variable) -> LinearCombination<F>[src]
impl<F: Field> Add<Variable> for LinearCombination<F>[src]
type Output = Self
The resulting type after applying the + operator.
fn add(self, other: Variable) -> LinearCombination<F>[src]
impl Clone for Variable[src]
fn clone(&self) -> Variable[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Variable[src]
impl Debug for Variable[src]
impl Eq for Variable[src]
impl<F: Field> From<Variable> for LinearCombination<F>[src]
impl Ord for Variable[src]
fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Variable> for Variable[src]
impl PartialOrd<Variable> for Variable[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for Variable[src]
impl StructuralPartialEq for Variable[src]
impl<'a, F: Field> Sub<&'a Variable> for LinearCombination<F>[src]
type Output = Self
The resulting type after applying the - operator.
fn sub(self, other: &'a Variable) -> LinearCombination<F>[src]
impl<F: Field> Sub<Variable> for LinearCombination<F>[src]
type Output = LinearCombination<F>
The resulting type after applying the - operator.
fn sub(self, other: Variable) -> LinearCombination<F>[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,