pub enum WitnessSegment {
Public,
Precommit,
Private,
}Variants§
Public
The public segment contains constant and input/output witness values.
Precommit
The precommit segment contains values committed in a separate oracle before the private segment. These are zero-knowledge hidden but not prunable or rearrangeable.
Private
The private segment contains the remaining witness values, which are hidden from the verifier.
Trait Implementations§
Source§impl Clone for WitnessSegment
impl Clone for WitnessSegment
Source§fn clone(&self) -> WitnessSegment
fn clone(&self) -> WitnessSegment
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 Copy for WitnessSegment
Source§impl Debug for WitnessSegment
impl Debug for WitnessSegment
impl Eq for WitnessSegment
Source§impl Ord for WitnessSegment
impl Ord for WitnessSegment
Source§fn cmp(&self, other: &WitnessSegment) -> Ordering
fn cmp(&self, other: &WitnessSegment) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WitnessSegment
impl PartialEq for WitnessSegment
Source§fn eq(&self, other: &WitnessSegment) -> bool
fn eq(&self, other: &WitnessSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WitnessSegment
impl PartialOrd for WitnessSegment
impl StructuralPartialEq for WitnessSegment
Auto Trait Implementations§
impl Freeze for WitnessSegment
impl RefUnwindSafe for WitnessSegment
impl Send for WitnessSegment
impl Sync for WitnessSegment
impl Unpin for WitnessSegment
impl UnsafeUnpin for WitnessSegment
impl UnwindSafe for WitnessSegment
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