binius_field

Struct ByteSlicedAES32x16b

source
pub struct ByteSlicedAES32x16b { /* private fields */ }

Implementations§

source§

impl ByteSlicedAES32x16b

source

pub const BYTES: usize = 64usize

source

pub unsafe fn get_byte_unchecked(&self, byte_index: usize) -> u8

Get the byte at the given index.

§Safety

The caller must ensure that byte_index is less than BYTES.

Trait Implementations§

source§

impl Add<AESTowerField16b> for ByteSlicedAES32x16b

source§

type Output = ByteSlicedAES32x16b

The resulting type after applying the + operator.
source§

fn add(self, rhs: AESTowerField16b) -> ByteSlicedAES32x16b

Performs the + operation. Read more
source§

impl Add for ByteSlicedAES32x16b

source§

type Output = ByteSlicedAES32x16b

The resulting type after applying the + operator.
source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
source§

impl AddAssign<AESTowerField16b> for ByteSlicedAES32x16b

source§

fn add_assign(&mut self, rhs: AESTowerField16b)

Performs the += operation. Read more
source§

impl AddAssign for ByteSlicedAES32x16b

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl Clone for ByteSlicedAES32x16b

source§

fn clone(&self) -> ByteSlicedAES32x16b

Returns a copy of the value. Read more
1.6.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ByteSlicedAES32x16b

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ByteSlicedAES32x16b

source§

fn default() -> ByteSlicedAES32x16b

Returns the “default value” for a type. Read more
source§

impl Mul<AESTowerField16b> for ByteSlicedAES32x16b

source§

type Output = ByteSlicedAES32x16b

The resulting type after applying the * operator.
source§

fn mul(self, rhs: AESTowerField16b) -> ByteSlicedAES32x16b

Performs the * operation. Read more
source§

impl Mul for ByteSlicedAES32x16b

source§

type Output = ByteSlicedAES32x16b

The resulting type after applying the * operator.
source§

fn mul(self, rhs: Self) -> Self

Performs the * operation. Read more
source§

impl MulAssign<AESTowerField16b> for ByteSlicedAES32x16b

source§

fn mul_assign(&mut self, rhs: AESTowerField16b)

Performs the *= operation. Read more
source§

impl MulAssign for ByteSlicedAES32x16b

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl PackedField for ByteSlicedAES32x16b

source§

const LOG_WIDTH: usize = 5usize

Base-2 logarithm of the number of field elements packed into one packed element.
source§

type Scalar = AESTowerField16b

source§

unsafe fn get_unchecked(&self, i: usize) -> Self::Scalar

Get the scalar at a given index without bounds checking. Read more
source§

unsafe fn set_unchecked(&mut self, i: usize, scalar: Self::Scalar)

Set the scalar at a given index without bounds checking. Read more
source§

fn random(rng: impl RngCore) -> Self

source§

fn broadcast(scalar: Self::Scalar) -> Self

source§

fn from_fn(f: impl FnMut(usize) -> Self::Scalar) -> Self

Construct a packed field element from a function that returns scalar values by index.
source§

fn square(self) -> Self

Returns the value multiplied by itself
source§

fn invert_or_zero(self) -> Self

Returns the packed inverse values or zeroes at indices where self is zero.
source§

fn interleave(self, other: Self, log_block_len: usize) -> (Self, Self)

Interleaves blocks of this packed vector with another packed vector. Read more
source§

const WIDTH: usize = _

The number of field elements packed into one packed element. Read more
source§

fn get_checked(&self, i: usize) -> Result<Self::Scalar, Error>

Get the scalar at a given index.
source§

fn set_checked(&mut self, i: usize, scalar: Self::Scalar) -> Result<(), Error>

Set the scalar at a given index.
source§

fn get(&self, i: usize) -> Self::Scalar

Get the scalar at a given index.
source§

fn set(&mut self, i: usize, scalar: Self::Scalar)

Set the scalar at a given index.
source§

fn into_iter(self) -> impl Iterator<Item = Self::Scalar>

source§

fn iter(&self) -> impl Iterator<Item = Self::Scalar> + Send

source§

fn zero() -> Self

source§

fn one() -> Self

source§

fn set_single(scalar: Self::Scalar) -> Self

Initialize zero position with scalar, set other elements to zero.
source§

fn from_scalars(values: impl IntoIterator<Item = Self::Scalar>) -> Self

Construct a packed field element from a sequence of scalars. Read more
source§

fn spread(self, log_block_len: usize, block_idx: usize) -> Self

Spread takes a block of elements within a packed field and repeats them to the full packing width. Read more
source§

unsafe fn spread_unchecked(self, log_block_len: usize, block_idx: usize) -> Self

Unsafe version of Self::spread. Read more
source§

impl PartialEq for ByteSlicedAES32x16b

source§

fn eq(&self, other: &ByteSlicedAES32x16b) -> bool

Tests for self and other values to be equal, and is used by ==.
1.6.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Product for ByteSlicedAES32x16b

source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Sub<AESTowerField16b> for ByteSlicedAES32x16b

source§

type Output = ByteSlicedAES32x16b

The resulting type after applying the - operator.
source§

fn sub(self, rhs: AESTowerField16b) -> ByteSlicedAES32x16b

Performs the - operation. Read more
source§

impl Sub for ByteSlicedAES32x16b

source§

type Output = ByteSlicedAES32x16b

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
source§

impl SubAssign<AESTowerField16b> for ByteSlicedAES32x16b

source§

fn sub_assign(&mut self, rhs: AESTowerField16b)

Performs the -= operation. Read more
source§

impl SubAssign for ByteSlicedAES32x16b

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl Sum for ByteSlicedAES32x16b

source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl Zeroable for ByteSlicedAES32x16b

§

fn zeroed() -> Self

source§

impl Copy for ByteSlicedAES32x16b

source§

impl Eq for ByteSlicedAES32x16b

source§

impl StructuralPartialEq for ByteSlicedAES32x16b

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<P> TaggedInvertOrZero<PairwiseRecursiveStrategy> for P
where P: PackedField, <P as PackedField>::Scalar: TowerExtensionField, <<P as PackedField>::Scalar as TowerExtensionField>::DirectSubfield: MulAlpha + InvertOrZero,

source§

impl<PT> TaggedInvertOrZero<PairwiseStrategy> for PT

source§

fn invert_or_zero(self) -> PT

source§

impl<P> TaggedMul<PairwiseRecursiveStrategy> for P
where P: PackedField, <P as PackedField>::Scalar: TowerExtensionField, <<P as PackedField>::Scalar as TowerExtensionField>::DirectSubfield: MulAlpha,

source§

fn mul(self, rhs: P) -> P

source§

impl<PT> TaggedMul<PairwiseStrategy> for PT
where PT: PackedField,

source§

fn mul(self, b: PT) -> PT

source§

impl<P> TaggedMulAlpha<PairwiseRecursiveStrategy> for P
where P: PackedField, <P as PackedField>::Scalar: TowerExtensionField, <<P as PackedField>::Scalar as TowerExtensionField>::DirectSubfield: MulAlpha,

source§

fn mul_alpha(self) -> P

source§

impl<IP, OP> TaggedPackedTransformationFactory<PairwiseStrategy, OP> for IP

source§

type PackedTransformation<Data: Deref<Target = [<OP as PackedField>::Scalar]>> = PairwiseTransformation<FieldLinearTransformation<<OP as PackedField>::Scalar, Data>>

source§

fn make_packed_transformation<Data>( transformation: FieldLinearTransformation<<OP as PackedField>::Scalar, Data>, ) -> <IP as TaggedPackedTransformationFactory<PairwiseStrategy, OP>>::PackedTransformation<Data>
where Data: Deref<Target = [<OP as PackedField>::Scalar]>,

source§

impl<P> TaggedSquare<PairwiseRecursiveStrategy> for P
where P: PackedField, <P as PackedField>::Scalar: TowerExtensionField, <<P as PackedField>::Scalar as TowerExtensionField>::DirectSubfield: MulAlpha,

source§

fn square(self) -> P

source§

impl<PT> TaggedSquare<PairwiseStrategy> for PT
where PT: PackedField, <PT as PackedField>::Scalar: Square,

source§

fn square(self) -> PT

source§

impl<T> TaggedSquare<ReuseMultiplyStrategy> for T
where T: Mul<Output = T> + Copy,

source§

fn square(self) -> T

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<PT> PackedBinaryField for PT