[−][src]Struct r1cs::WireValues
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: Default + Field> Default for WireValues<F>
[src]
fn default() -> 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,
F: RefUnwindSafe,
impl<F> RefUnwindSafe for WireValues<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
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,