[−][src]Struct r1cs::BooleanWire
A Wire
whose value is constrained to be binary.
Fields
wire: Wire
Methods
impl BooleanWire
[src]
A Wire
which has been constrained in such a way that it can only take on a value of 0 or 1.
pub fn new_unsafe(wire: Wire) -> Self
[src]
Construct a BooleanWire from an arbitrary wire. This is only safe if you separately constrain the wire to equal 0 or 1.
Users should not normally call this method directly; use a method like
GadgetBuilder::boolean_wire()
instead.
pub fn wire(self) -> Wire
[src]
Trait Implementations
impl<'_, F: Field> From<&'_ BooleanWire> for BooleanExpression<F>
[src]
fn from(wire: &BooleanWire) -> Self
[src]
impl<F: Field> From<BooleanWire> for BooleanExpression<F>
[src]
fn from(wire: BooleanWire) -> Self
[src]
impl Clone for BooleanWire
[src]
fn clone(&self) -> BooleanWire
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for BooleanWire
[src]
impl Eq for BooleanWire
[src]
impl PartialEq<BooleanWire> for BooleanWire
[src]
fn eq(&self, other: &BooleanWire) -> bool
[src]
fn ne(&self, other: &BooleanWire) -> bool
[src]
impl Debug for BooleanWire
[src]
impl Hash for BooleanWire
[src]
Auto Trait Implementations
impl Send for BooleanWire
impl Sync for BooleanWire
impl Unpin for BooleanWire
impl UnwindSafe for BooleanWire
impl RefUnwindSafe for BooleanWire
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,