[][src]Struct r1cs::WireValues

pub struct WireValues<F: Field> { /* fields omitted */ }

An assignment of wire values, where each value is an element of the field F.

Methods

impl<F: Field> WireValues<F>[src]

pub fn new() -> Self[src]

pub fn as_map(&self) -> &BTreeMap<Wire, Element<F>>[src]

pub fn get(&self, wire: Wire) -> &Element<F>[src]

pub fn get_boolean(&self, wire: BooleanWire) -> bool[src]

pub fn set(&mut self, wire: Wire, value: Element<F>)[src]

pub fn set_boolean(&mut self, wire: BooleanWire, value: bool)[src]

pub fn set_binary_unsigned(&mut self, wire: &BinaryWire, value: &BigUint)[src]

pub fn contains(&self, wire: Wire) -> bool[src]

pub fn contains_boolean(&self, wire: BooleanWire) -> bool[src]

pub fn contains_all(&self, wires: &[Wire]) -> bool[src]

Trait Implementations

impl<F: Field> Clone for WireValues<F>[src]

impl<F: Default + Field> Default for WireValues<F>[src]

impl<F: Debug + Field> Debug for WireValues<F>[src]

Auto Trait Implementations

impl<F> !Send for WireValues<F>

impl<F> !Sync for WireValues<F>

impl<F> Unpin for WireValues<F>

impl<F> UnwindSafe for WireValues<F> where
    F: RefUnwindSafe

impl<F> RefUnwindSafe for WireValues<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]