Struct bellperson::Variable [−][src]
pub struct Variable(_);
Expand description
Represents a variable in our constraint system.
Implementations
impl Variable
[src]
impl Variable
[src]pub fn new_unchecked(idx: Index) -> Variable
[src]
pub fn new_unchecked(idx: Index) -> Variable
[src]This constructs a variable with an arbitrary index. Circuit implementations are not recommended to use this.
pub fn get_unchecked(&self) -> Index
[src]
pub fn get_unchecked(&self) -> Index
[src]This returns the index underlying the variable. Circuit implementations are not recommended to use this.
Trait Implementations
impl<E: ScalarEngine> Add<Variable> for LinearCombination<E>
[src]
impl<E: ScalarEngine> Add<Variable> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the +
operator.
fn add(self, other: Variable) -> LinearCombination<E>
[src]
fn add(self, other: Variable) -> LinearCombination<E>
[src]Performs the +
operation. Read more
impl<E: ScalarEngine> Sub<Variable> for LinearCombination<E>
[src]
impl<E: ScalarEngine> Sub<Variable> for LinearCombination<E>
[src]type Output = LinearCombination<E>
type Output = LinearCombination<E>
The resulting type after applying the -
operator.
fn sub(self, other: Variable) -> LinearCombination<E>
[src]
fn sub(self, other: Variable) -> LinearCombination<E>
[src]Performs the -
operation. Read more
impl Copy for Variable
[src]
impl Eq for Variable
[src]
impl StructuralEq for Variable
[src]
impl StructuralPartialEq for Variable
[src]
Auto Trait Implementations
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,