Enum leo_compiler::value::value::ConstrainedValue [−][src]
Variants
Address(Address)
Boolean(Boolean)
Field(FieldType<F>)
Integer(Integer)
Array(Vec<ConstrainedValue<F, G>>)
Tuple(Vec<ConstrainedValue<F, G>>)
CircuitExpression(Arc<CircuitBody>, Vec<ConstrainedCircuitMember<F, G>>)
Trait Implementations
impl<F: Clone + Field + PrimeField, G: Clone + GroupType<F>> Clone for ConstrainedValue<F, G>
[src]
fn clone(&self) -> ConstrainedValue<F, G>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: Field + PrimeField, G: GroupType<F>> CondSelectGadget<F> for ConstrainedValue<F, G>
[src]
fn conditionally_select<CS: ConstraintSystem<F>>(
mut cs: CS,
cond: &Boolean,
first: &Self,
second: &Self
) -> Result<Self, SynthesisError>
[src]
mut cs: CS,
cond: &Boolean,
first: &Self,
second: &Self
) -> Result<Self, SynthesisError>
fn cost() -> usize
[src]
impl<F: Field + PrimeField, G: GroupType<F>> ConditionalEqGadget<F> for ConstrainedValue<F, G>
[src]
fn conditional_enforce_equal<CS: ConstraintSystem<F>>(
&self,
mut cs: CS,
other: &Self,
condition: &Boolean
) -> Result<(), SynthesisError>
[src]
&self,
mut cs: CS,
other: &Self,
condition: &Boolean
) -> Result<(), SynthesisError>
fn cost() -> usize
[src]
impl<F: Field + PrimeField, G: GroupType<F>> Debug for ConstrainedValue<F, G>
[src]
impl<F: Field + PrimeField, G: GroupType<F>> Display for ConstrainedValue<F, G>
[src]
impl<F: Eq + Field + PrimeField, G: Eq + GroupType<F>> Eq for ConstrainedValue<F, G>
[src]
impl<F: PartialEq + Field + PrimeField, G: PartialEq + GroupType<F>> PartialEq<ConstrainedValue<F, G>> for ConstrainedValue<F, G>
[src]
fn eq(&self, other: &ConstrainedValue<F, G>) -> bool
[src]
fn ne(&self, other: &ConstrainedValue<F, G>) -> bool
[src]
impl<F: Field + PrimeField, G: GroupType<F>> StructuralEq for ConstrainedValue<F, G>
[src]
impl<F: Field + PrimeField, G: GroupType<F>> StructuralPartialEq for ConstrainedValue<F, G>
[src]
Auto Trait Implementations
impl<F, G> !RefUnwindSafe for ConstrainedValue<F, G>
[src]
impl<F, G> !Send for ConstrainedValue<F, G>
[src]
impl<F, G> !Sync for ConstrainedValue<F, G>
[src]
impl<F, G> Unpin for ConstrainedValue<F, G> where
F: Unpin,
G: Unpin,
[src]
F: Unpin,
G: Unpin,
impl<F, G> !UnwindSafe for ConstrainedValue<F, G>
[src]
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<F, T> ConditionalOrEqualsGadget<F> for T where
F: Field,
T: ConditionalEqGadget<F> + CondSelectGadget<F>,
[src]
F: Field,
T: ConditionalEqGadget<F> + CondSelectGadget<F>,
pub fn conditional_enforce_equal_or<CS>(
cs: CS,
cond: &Boolean,
var: &T,
first: &T,
second: &T,
should_enforce: &Boolean
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
[src]
cs: CS,
cond: &Boolean,
var: &T,
first: &T,
second: &T,
should_enforce: &Boolean
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
pub fn cost() -> usize
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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<F, T> OrEqualsGadget<F> for T where
F: Field,
T: ConditionalOrEqualsGadget<F>,
[src]
F: Field,
T: ConditionalOrEqualsGadget<F>,
pub fn enforce_equal_or<CS>(
cs: CS,
cond: &Boolean,
var: &T,
first: &T,
second: &T
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
[src]
cs: CS,
cond: &Boolean,
var: &T,
first: &T,
second: &T
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
pub fn cost() -> usize
[src]
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,