pub struct RescueMatrix<F> { /* private fields */ }
Expand description
A matrix that consists of STATE_SIZE
number of rescue vectors.
Implementations§
Source§impl<F: PrimeField> RescueMatrix<F>
impl<F: PrimeField> RescueMatrix<F>
Sourcepub fn vec(&self, i: usize) -> RescueVector<F>
pub fn vec(&self, i: usize) -> RescueVector<F>
Accessing the i-th vector of the matrix.
Function needs to be public for circuits generation..
WARNING: may expose the internal state.
Trait Implementations§
Source§impl<F: Clone> Clone for RescueMatrix<F>
impl<F: Clone> Clone for RescueMatrix<F>
Source§fn clone(&self) -> RescueMatrix<F>
fn clone(&self) -> RescueMatrix<F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F: Debug> Debug for RescueMatrix<F>
impl<F: Debug> Debug for RescueMatrix<F>
Source§impl<F: PrimeField> From<&[RescueVector<F>; 4]> for RescueMatrix<F>
impl<F: PrimeField> From<&[RescueVector<F>; 4]> for RescueMatrix<F>
Source§fn from(vectors: &[RescueVector<F>; 4]) -> Self
fn from(vectors: &[RescueVector<F>; 4]) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> Freeze for RescueMatrix<F>where
F: Freeze,
impl<F> RefUnwindSafe for RescueMatrix<F>where
F: RefUnwindSafe,
impl<F> Send for RescueMatrix<F>where
F: Send,
impl<F> Sync for RescueMatrix<F>where
F: Sync,
impl<F> Unpin for RescueMatrix<F>where
F: Unpin,
impl<F> UnwindSafe for RescueMatrix<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