pub struct Witness(pub u32);Expand description
An index that represents the position a witness value will take
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl<F: AcirField> Add<&Expression<F>> for Witness
impl<F: AcirField> Add<&Expression<F>> for Witness
Source§type Output = Expression<F>
type Output = Expression<F>
The resulting type after applying the
+ operator.Source§impl<'de> Deserialize<'de> for Witness
impl<'de> Deserialize<'de> for Witness
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<F> Index<&Witness> for WitnessMap<F>
impl<F> Index<&Witness> for WitnessMap<F>
Source§impl Ord for Witness
impl Ord for Witness
Source§impl PartialOrd for Witness
impl PartialOrd for Witness
Source§impl<F: AcirField> Sub<&Expression<F>> for Witness
impl<F: AcirField> Sub<&Expression<F>> for Witness
Source§type Output = Expression<F>
type Output = Expression<F>
The resulting type after applying the
- operator.impl Copy for Witness
impl Eq for Witness
impl StructuralPartialEq for Witness
Auto Trait Implementations§
impl Freeze for Witness
impl RefUnwindSafe for Witness
impl Send for Witness
impl Sync for Witness
impl Unpin for Witness
impl UnwindSafe for Witness
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more