pub struct PublicWire<F: Field>(/* private fields */);Expand description
Wire type for InstanceGenerator: holds the field value of a public wire (a constant, inout,
or derived value the verifier can compute) and is None for private/precommit wires, whose
values the verifier does not know. A wire being Some mirrors WireKind::is_public, so the
derived-vs-private branching stays aligned with the other builders.
Implementations§
Trait Implementations§
Source§impl<F: Clone + Field> Clone for PublicWire<F>
impl<F: Clone + Field> Clone for PublicWire<F>
Source§fn clone(&self) -> PublicWire<F>
fn clone(&self) -> PublicWire<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<F: Copy + Field> Copy for PublicWire<F>
impl<F: Eq + Field> Eq for PublicWire<F>
Source§impl<F: PartialEq + Field> PartialEq for PublicWire<F>
impl<F: PartialEq + Field> PartialEq for PublicWire<F>
Source§fn eq(&self, other: &PublicWire<F>) -> bool
fn eq(&self, other: &PublicWire<F>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<F: PartialEq + Field> StructuralPartialEq for PublicWire<F>
Auto Trait Implementations§
impl<F> Freeze for PublicWire<F>where
F: Freeze,
impl<F> RefUnwindSafe for PublicWire<F>where
F: RefUnwindSafe,
impl<F> Send for PublicWire<F>
impl<F> Sync for PublicWire<F>
impl<F> Unpin for PublicWire<F>where
F: Unpin,
impl<F> UnsafeUnpin for PublicWire<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for PublicWire<F>where
F: UnwindSafe,
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,
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