pub struct FieldLinearTransformation<OF: BinaryField, Data: Deref<Target = [OF]> = &'static [OF]> { /* private fields */ }
Expand description
An $\mathbb{F}_2$-linear transformation on binary fields.
Stores transposed transformation matrix as a collection of field elements. Data
is a generic
parameter because we want to be able both to have const instances that reference static arrays
and owning vector elements.
Implementations§
source§impl<OF: BinaryField> FieldLinearTransformation<OF, &'static [OF]>
impl<OF: BinaryField> FieldLinearTransformation<OF, &'static [OF]>
source§impl<OF: BinaryField, Data: Deref<Target = [OF]>> FieldLinearTransformation<OF, Data>
impl<OF: BinaryField, Data: Deref<Target = [OF]>> FieldLinearTransformation<OF, Data>
source§impl<OF: BinaryField> FieldLinearTransformation<OF, Vec<OF>>
impl<OF: BinaryField> FieldLinearTransformation<OF, Vec<OF>>
Trait Implementations§
source§impl<OF: Clone + BinaryField, Data: Clone + Deref<Target = [OF]>> Clone for FieldLinearTransformation<OF, Data>
impl<OF: Clone + BinaryField, Data: Clone + Deref<Target = [OF]>> Clone for FieldLinearTransformation<OF, Data>
source§fn clone(&self) -> FieldLinearTransformation<OF, Data>
fn clone(&self) -> FieldLinearTransformation<OF, Data>
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<OF: Debug + BinaryField, Data: Debug + Deref<Target = [OF]>> Debug for FieldLinearTransformation<OF, Data>
impl<OF: Debug + BinaryField, Data: Debug + Deref<Target = [OF]>> Debug for FieldLinearTransformation<OF, Data>
source§impl<IF: BinaryField, OF: BinaryField, Data: Deref<Target = [OF]>> Transformation<IF, OF> for FieldLinearTransformation<OF, Data>
impl<IF: BinaryField, OF: BinaryField, Data: Deref<Target = [OF]>> Transformation<IF, OF> for FieldLinearTransformation<OF, Data>
Auto Trait Implementations§
impl<OF, Data> Freeze for FieldLinearTransformation<OF, Data>
impl<OF, Data> RefUnwindSafe for FieldLinearTransformation<OF, Data>
impl<OF, Data> Send for FieldLinearTransformation<OF, Data>
impl<OF, Data> Sync for FieldLinearTransformation<OF, Data>
impl<OF, Data> Unpin for FieldLinearTransformation<OF, Data>
impl<OF, Data> UnwindSafe for FieldLinearTransformation<OF, Data>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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