pub struct PermutationWitness<T, const WIDTH: usize> { /* private fields */ }Expand description
The trace of a permutation: the witness for a PermutationInstance.
Implementations§
Source§impl<T: Unit + Encoding + FromNarg, const WIDTH: usize> PermutationWitness<T, WIDTH>
impl<T: Unit + Encoding + FromNarg, const WIDTH: usize> PermutationWitness<T, WIDTH>
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, InvalidRelation>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, InvalidRelation>
Parses Self::to_bytes.
Source§impl<T, const WIDTH: usize> PermutationWitness<T, WIDTH>
impl<T, const WIDTH: usize> PermutationWitness<T, WIDTH>
Sourcepub fn trace(&self) -> &[QueryAnswerPair<T, WIDTH>]
pub fn trace(&self) -> &[QueryAnswerPair<T, WIDTH>]
One step per query, in the order the queries were made.
Trait Implementations§
Source§impl<T: Clone, const WIDTH: usize> Clone for PermutationWitness<T, WIDTH>
impl<T: Clone, const WIDTH: usize> Clone for PermutationWitness<T, WIDTH>
Source§fn clone(&self) -> PermutationWitness<T, WIDTH>
fn clone(&self) -> PermutationWitness<T, WIDTH>
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<T: Eq, const WIDTH: usize> Eq for PermutationWitness<T, WIDTH>
impl<T: PartialEq, const WIDTH: usize> StructuralPartialEq for PermutationWitness<T, WIDTH>
Auto Trait Implementations§
impl<T, const WIDTH: usize> Freeze for PermutationWitness<T, WIDTH>
impl<T, const WIDTH: usize> RefUnwindSafe for PermutationWitness<T, WIDTH>
impl<T, const WIDTH: usize> Send for PermutationWitness<T, WIDTH>
impl<T, const WIDTH: usize> Sync for PermutationWitness<T, WIDTH>
impl<T, const WIDTH: usize> Unpin for PermutationWitness<T, WIDTH>
impl<T, const WIDTH: usize> UnsafeUnpin for PermutationWitness<T, WIDTH>
impl<T, const WIDTH: usize> UnwindSafe for PermutationWitness<T, WIDTH>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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