pub struct AESTowerField16b(/* private fields */);

Implementations§

source§

impl AESTowerField16b

source

pub const fn new(value: u16) -> Self

source

pub fn val(self) -> u16

Trait Implementations§

source§

impl Add<&AESTowerField16b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField128b> for AESTowerField16b

§

type Output = AESTowerField128b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField16b> for AESTowerField128b

§

type Output = AESTowerField128b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField16b> for AESTowerField32b

§

type Output = AESTowerField32b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField16b> for AESTowerField64b

§

type Output = AESTowerField64b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField16b> for AESTowerField8b

§

type Output = AESTowerField16b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField16b> for BinaryField1b

§

type Output = AESTowerField16b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField32b> for AESTowerField16b

§

type Output = AESTowerField32b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField64b> for AESTowerField16b

§

type Output = AESTowerField64b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<AESTowerField8b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<BinaryField1b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<&AESTowerField16b> for AESTowerField16b

source§

fn add_assign(&mut self, rhs: &Self)

Performs the += operation. Read more
source§

impl AddAssign<AESTowerField16b> for AESTowerField128b

source§

fn add_assign(&mut self, rhs: AESTowerField16b)

Performs the += operation. Read more
source§

impl AddAssign<AESTowerField16b> for AESTowerField32b

source§

fn add_assign(&mut self, rhs: AESTowerField16b)

Performs the += operation. Read more
source§

impl AddAssign<AESTowerField16b> for AESTowerField64b

source§

fn add_assign(&mut self, rhs: AESTowerField16b)

Performs the += operation. Read more
source§

impl AddAssign<AESTowerField8b> for AESTowerField16b

source§

fn add_assign(&mut self, rhs: AESTowerField8b)

Performs the += operation. Read more
source§

impl AddAssign<BinaryField1b> for AESTowerField16b

source§

fn add_assign(&mut self, rhs: BinaryField1b)

Performs the += operation. Read more
source§

impl AddAssign for AESTowerField16b

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl AsSinglePacked for AESTowerField16b

§

type Packed = PackedPrimitiveType<u16, AESTowerField16b>

source§

fn to_single_packed(self) -> Self::Packed

source§

fn from_single_packed(value: Self::Packed) -> Self

source§

impl BinaryField for AESTowerField16b

source§

impl Clone for AESTowerField16b

source§

fn clone(&self) -> AESTowerField16b

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

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

Performs copy-assignment from source. Read more
source§

impl ConditionallySelectable for AESTowerField16b

source§

fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self

Select a or b according to choice. Read more
source§

fn conditional_assign(&mut self, other: &Self, choice: Choice)

Conditionally assign other to self, according to choice. Read more
source§

fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)

Conditionally swap self and other if choice == 1; otherwise, reassign both unto themselves. Read more
source§

impl ConstantTimeEq for AESTowerField16b

source§

fn ct_eq(&self, other: &Self) -> Choice

Determine if two items are equal. Read more
source§

fn ct_ne(&self, other: &Self) -> Choice

Determine if two items are NOT equal. Read more
source§

impl Debug for AESTowerField16b

source§

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

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

impl Default for AESTowerField16b

source§

fn default() -> AESTowerField16b

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

impl Display for AESTowerField16b

source§

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

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

impl ExtensionField<AESTowerField16b> for AESTowerField128b

source§

impl ExtensionField<AESTowerField16b> for AESTowerField32b

source§

impl ExtensionField<AESTowerField16b> for AESTowerField64b

source§

impl ExtensionField<AESTowerField8b> for AESTowerField16b

source§

impl ExtensionField<BinaryField1b> for AESTowerField16b

§

type Iterator = <[BinaryField1b; 16] as IntoIterator>::IntoIter

source§

const DEGREE: usize = 16usize

source§

fn basis(i: usize) -> Result<Self, Error>

source§

fn from_bases(base_elems: &[BinaryField1b]) -> Result<Self, Error>

source§

fn iter_bases(&self) -> Self::Iterator

source§

impl Field for AESTowerField16b

source§

const ZERO: Self = _

The zero element of the field, the additive identity.
source§

const ONE: Self = _

The one element of the field, the multiplicative identity.
source§

fn random(rng: impl RngCore) -> Self

Returns an element chosen uniformly at random using a user-provided RNG.
source§

fn double(&self) -> Self

Doubles this element.
source§

fn is_zero(&self) -> bool

Returns true iff this element is zero.
source§

fn invert(&self) -> Option<Self>

Computes the multiplicative inverse of this element, failing if the element is zero.
source§

fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self

Exponentiates self by exp, where exp is a little-endian order integer exponent. Read more
source§

fn pow_vartime<S: AsRef<[u64]>>(&self, exp: S) -> Self

Exponentiates self by exp, where exp is a little-endian order integer exponent. Read more
source§

impl From<(AESTowerField8b, AESTowerField8b)> for AESTowerField16b

source§

fn from((a, b): (AESTowerField8b, AESTowerField8b)) -> Self

Converts to this type from the input type.
source§

impl From<AESTowerField16b> for (AESTowerField8b, AESTowerField8b)

source§

fn from(src: AESTowerField16b) -> (AESTowerField8b, AESTowerField8b)

Converts to this type from the input type.
source§

impl From<AESTowerField16b> for AESTowerField128b

source§

fn from(elem: AESTowerField16b) -> Self

Converts to this type from the input type.
source§

impl From<AESTowerField16b> for AESTowerField32b

source§

fn from(elem: AESTowerField16b) -> Self

Converts to this type from the input type.
source§

impl From<AESTowerField16b> for AESTowerField64b

source§

fn from(elem: AESTowerField16b) -> Self

Converts to this type from the input type.
source§

impl From<AESTowerField16b> for BinaryField16b

source§

fn from(value: AESTowerField16b) -> Self

Converts to this type from the input type.
source§

impl From<AESTowerField16b> for u16

source§

fn from(val: AESTowerField16b) -> Self

Converts to this type from the input type.
source§

impl From<AESTowerField8b> for AESTowerField16b

source§

fn from(elem: AESTowerField8b) -> Self

Converts to this type from the input type.
source§

impl From<BinaryField16b> for AESTowerField16b

source§

fn from(value: BinaryField16b) -> Self

Converts to this type from the input type.
source§

impl From<BinaryField1b> for AESTowerField16b

source§

fn from(elem: BinaryField1b) -> Self

Converts to this type from the input type.
source§

impl From<u16> for AESTowerField16b

source§

fn from(val: u16) -> Self

Converts to this type from the input type.
source§

impl Hash for AESTowerField16b

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl InvertOrZero for AESTowerField16b

source§

fn invert_or_zero(self) -> Self

Returns the inverted value or zero in case when self is zero
source§

impl Mul<&AESTowerField16b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField128b> for AESTowerField16b

§

type Output = AESTowerField128b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField16b> for AESTowerField128b

§

type Output = AESTowerField128b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField16b> for AESTowerField32b

§

type Output = AESTowerField32b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField16b> for AESTowerField64b

§

type Output = AESTowerField64b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField16b> for AESTowerField8b

§

type Output = AESTowerField16b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField16b> for BinaryField1b

§

type Output = AESTowerField16b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField32b> for AESTowerField16b

§

type Output = AESTowerField32b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField64b> for AESTowerField16b

§

type Output = AESTowerField64b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<AESTowerField8b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<BinaryField1b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<&AESTowerField16b> for AESTowerField16b

source§

fn mul_assign(&mut self, rhs: &Self)

Performs the *= operation. Read more
source§

impl MulAssign<AESTowerField16b> for AESTowerField128b

source§

fn mul_assign(&mut self, rhs: AESTowerField16b)

Performs the *= operation. Read more
source§

impl MulAssign<AESTowerField16b> for AESTowerField32b

source§

fn mul_assign(&mut self, rhs: AESTowerField16b)

Performs the *= operation. Read more
source§

impl MulAssign<AESTowerField16b> for AESTowerField64b

source§

fn mul_assign(&mut self, rhs: AESTowerField16b)

Performs the *= operation. Read more
source§

impl MulAssign<AESTowerField8b> for AESTowerField16b

source§

fn mul_assign(&mut self, rhs: AESTowerField8b)

Performs the *= operation. Read more
source§

impl MulAssign<BinaryField1b> for AESTowerField16b

source§

fn mul_assign(&mut self, rhs: BinaryField1b)

Performs the *= operation. Read more
source§

impl MulAssign for AESTowerField16b

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Ord for AESTowerField16b

source§

fn cmp(&self, other: &AESTowerField16b) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for AESTowerField16b

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

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

impl PartialOrd for AESTowerField16b

source§

fn partial_cmp(&self, other: &AESTowerField16b) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Product<&'a AESTowerField16b> for AESTowerField16b

source§

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

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Product for AESTowerField16b

source§

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

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl Square for AESTowerField16b

source§

fn square(self) -> Self

Returns the value multiplied by itself
source§

impl Step for AESTowerField16b

source§

fn steps_between(start: &Self, end: &Self) -> Option<usize>

🔬This is a nightly-only experimental API. (step_trait)
Returns the number of successor steps required to get from start to end. Read more
source§

fn forward_checked(start: Self, count: usize) -> Option<Self>

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

fn backward_checked(start: Self, count: usize) -> Option<Self>

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

fn forward(start: Self, count: usize) -> Self

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

unsafe fn forward_unchecked(start: Self, count: usize) -> Self

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the successor of self count times. Read more
source§

fn backward(start: Self, count: usize) -> Self

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

unsafe fn backward_unchecked(start: Self, count: usize) -> Self

🔬This is a nightly-only experimental API. (step_trait)
Returns the value that would be obtained by taking the predecessor of self count times. Read more
source§

impl Sub<&AESTowerField16b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField128b> for AESTowerField16b

§

type Output = AESTowerField128b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField16b> for AESTowerField128b

§

type Output = AESTowerField128b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField16b> for AESTowerField32b

§

type Output = AESTowerField32b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField16b> for AESTowerField64b

§

type Output = AESTowerField64b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField16b> for AESTowerField8b

§

type Output = AESTowerField16b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField16b> for BinaryField1b

§

type Output = AESTowerField16b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField32b> for AESTowerField16b

§

type Output = AESTowerField32b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField64b> for AESTowerField16b

§

type Output = AESTowerField64b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<AESTowerField8b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<BinaryField1b> for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub for AESTowerField16b

§

type Output = AESTowerField16b

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<&AESTowerField16b> for AESTowerField16b

source§

fn sub_assign(&mut self, rhs: &Self)

Performs the -= operation. Read more
source§

impl SubAssign<AESTowerField16b> for AESTowerField128b

source§

fn sub_assign(&mut self, rhs: AESTowerField16b)

Performs the -= operation. Read more
source§

impl SubAssign<AESTowerField16b> for AESTowerField32b

source§

fn sub_assign(&mut self, rhs: AESTowerField16b)

Performs the -= operation. Read more
source§

impl SubAssign<AESTowerField16b> for AESTowerField64b

source§

fn sub_assign(&mut self, rhs: AESTowerField16b)

Performs the -= operation. Read more
source§

impl SubAssign<AESTowerField8b> for AESTowerField16b

source§

fn sub_assign(&mut self, rhs: AESTowerField8b)

Performs the -= operation. Read more
source§

impl SubAssign<BinaryField1b> for AESTowerField16b

source§

fn sub_assign(&mut self, rhs: BinaryField1b)

Performs the -= operation. Read more
source§

impl SubAssign for AESTowerField16b

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl<'a> Sum<&'a AESTowerField16b> for AESTowerField16b

source§

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

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

impl Sum for AESTowerField16b

source§

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

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

impl TowerField for AESTowerField16b

source§

const TOWER_LEVEL: usize = 4usize

The level $\iota$ in the tower, where this field is isomorphic to $T_{\iota}$.
source§

fn mul_primitive(self, iota: usize) -> Result<Self, Error>

Multiplies a field element by the canonical primitive element of the extension $T_{\iota + 1} / T_{iota}$. Read more
source§

fn basis(iota: usize, i: usize) -> Result<Self, Error>

source§

impl TransparentWrapper<u16> for AESTowerField16b

§

fn wrap(s: Inner) -> Self
where Self: Sized,

Convert the inner type into the wrapper type.
§

fn wrap_ref(s: &Inner) -> &Self

Convert a reference to the inner type into a reference to the wrapper type.
§

fn wrap_mut(s: &mut Inner) -> &mut Self

Convert a mutable reference to the inner type into a mutable reference to the wrapper type.
§

fn wrap_slice(s: &[Inner]) -> &[Self]
where Self: Sized,

Convert a slice to the inner type into a slice to the wrapper type.
§

fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]
where Self: Sized,

Convert a mutable slice to the inner type into a mutable slice to the wrapper type.
§

fn peel(s: Self) -> Inner
where Self: Sized,

Convert the wrapper type into the inner type.
§

fn peel_ref(s: &Self) -> &Inner

Convert a reference to the wrapper type into a reference to the inner type.
§

fn peel_mut(s: &mut Self) -> &mut Inner

Convert a mutable reference to the wrapper type into a mutable reference to the inner type.
§

fn peel_slice(s: &[Self]) -> &[Inner]
where Self: Sized,

Convert a slice to the wrapped type into a slice to the inner type.
§

fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]
where Self: Sized,

Convert a mutable slice to the wrapped type into a mutable slice to the inner type.
source§

impl TryFrom<AESTowerField128b> for AESTowerField16b

§

type Error = ()

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

fn try_from(elem: AESTowerField128b) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AESTowerField16b> for AESTowerField8b

§

type Error = ()

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

fn try_from(elem: AESTowerField16b) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AESTowerField16b> for BinaryField1b

§

type Error = ()

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

fn try_from(elem: AESTowerField16b) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AESTowerField32b> for AESTowerField16b

§

type Error = ()

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

fn try_from(elem: AESTowerField32b) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<AESTowerField64b> for AESTowerField16b

§

type Error = ()

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

fn try_from(elem: AESTowerField64b) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl WithUnderlier for AESTowerField16b

§

type Underlier = u16

Underlier primitive type
source§

fn to_underlier(self) -> Self::Underlier

Convert value to underlier.
source§

fn to_underlier_ref(&self) -> &Self::Underlier

source§

fn to_underlier_ref_mut(&mut self) -> &mut Self::Underlier

source§

fn to_underliers_ref(val: &[Self]) -> &[Self::Underlier]

source§

fn to_underliers_ref_mut(val: &mut [Self]) -> &mut [Self::Underlier]

source§

fn from_underlier(val: Self::Underlier) -> Self

source§

fn from_underlier_ref(val: &Self::Underlier) -> &Self

source§

fn from_underlier_ref_mut(val: &mut Self::Underlier) -> &mut Self

source§

fn from_underliers_ref(val: &[Self::Underlier]) -> &[Self]

source§

fn from_underliers_ref_mut(val: &mut [Self::Underlier]) -> &mut [Self]

source§

fn mutate_underlier( self, f: impl FnOnce(Self::Underlier) -> Self::Underlier ) -> Self

source§

impl Zeroable for AESTowerField16b

§

fn zeroed() -> Self

source§

impl Copy for AESTowerField16b

source§

impl Eq for AESTowerField16b

source§

impl Pod for AESTowerField16b

source§

impl StructuralPartialEq for AESTowerField16b

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<F> ArchOptimal for F
where F: Field, M128: PackScalar<F>,

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<F> Broadcast<F> for F
where F: Field,

source§

fn broadcast(scalar: F) -> F

Set `scalar`` value to all the positions
§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
source§

impl<F> ExtensionField<F> for F
where F: Field,

§

type Iterator = Once<F>

source§

const DEGREE: usize = 1usize

source§

fn basis(i: usize) -> Result<F, Error>

source§

fn from_bases(base_elems: &[F]) -> Result<F, Error>

source§

fn iter_bases(&self) -> <F as ExtensionField<F>>::Iterator

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

impl<T> MulAlpha for T
where T: TowerFieldArithmetic,

source§

fn mul_alpha(self) -> T

Multiply self by alpha
source§

impl<F, PT> PackedExtensionIndexable<F> for PT

source§

impl<F> PackedField for F
where F: Field,

§

type Scalar = F

source§

const LOG_WIDTH: usize = 0usize

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

unsafe fn get_unchecked(&self, _i: usize) -> <F as PackedField>::Scalar

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

unsafe fn set_unchecked( &mut self, _i: usize, scalar: <F as PackedField>::Scalar )

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

fn iter(&self) -> impl Iterator<Item = <F as PackedField>::Scalar>

source§

fn random(rng: impl RngCore) -> F

source§

fn interleave(self, _other: F, _log_block_len: usize) -> (F, F)

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

fn broadcast(scalar: <F as PackedField>::Scalar) -> F

source§

fn square(self) -> F

Returns the value multiplied by itself
source§

fn invert_or_zero(self) -> F

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

fn from_fn(f: impl FnMut(usize) -> <F as PackedField>::Scalar) -> F

Construct a packed field element from a function that returns scalar values by index.
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 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§

impl<S, P> PackedFieldIndexable for P
where S: Field, P: PackedDivisible<S, Scalar = S>,

source§

fn unpack_scalars(packed: &[P]) -> &[<P as PackedField>::Scalar]

source§

fn unpack_scalars_mut(packed: &mut [P]) -> &mut [<P as PackedField>::Scalar]

§

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<PT> TaggedInvertOrZero<PackedStrategy> for PT
where PT: PackedTowerField, <PT as PackedTowerField>::PackedDirectSubfield: MulAlpha, <PT as WithUnderlier>::Underlier: UnderlierWithBitConstants,

source§

fn invert_or_zero(self) -> PT

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<HybridRecursiveStrategy> for P
where P: PackedTowerField, <P as PackedField>::Scalar: TowerExtensionField<DirectSubfield = <P as PackedTowerField>::DirectSubfield>, <P as PackedTowerField>::PackedDirectSubfield: MulAlpha, <P as PackedTowerField>::DirectSubfield: MulAlpha,

source§

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

source§

impl<PT> TaggedMul<PackedStrategy> for PT
where PT: PackedTowerField, <PT as WithUnderlier>::Underlier: UnderlierWithBitConstants, <PT as PackedTowerField>::DirectSubfield: TowerConstants<<PT as WithUnderlier>::Underlier>,

source§

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

Optimized packed field multiplication algorithm

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<HybridRecursiveStrategy> for P
where P: PackedTowerField, <P as PackedField>::Scalar: TowerExtensionField<DirectSubfield = <P as PackedTowerField>::DirectSubfield>, <P as PackedTowerField>::PackedDirectSubfield: MulAlpha,

source§

fn mul_alpha(self) -> P

source§

impl<PT> TaggedMulAlpha<PackedStrategy> for PT
where PT: PackedTowerField, <PT as PackedTowerField>::PackedDirectSubfield: MulAlpha, <PT as WithUnderlier>::Underlier: UnderlierWithBitConstants,

source§

fn mul_alpha(self) -> 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<PT> TaggedMulAlpha<PairwiseStrategy> for PT

source§

fn mul_alpha(self) -> PT

source§

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

§

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

source§

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

source§

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

§

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<HybridRecursiveStrategy> for P
where P: PackedTowerField, <P as PackedField>::Scalar: TowerExtensionField<DirectSubfield = <P as PackedTowerField>::DirectSubfield>, <P as PackedTowerField>::DirectSubfield: MulAlpha,

source§

fn square(self) -> P

source§

impl<PT> TaggedSquare<PackedStrategy> for PT
where PT: PackedTowerField, <PT as PackedTowerField>::PackedDirectSubfield: MulAlpha, <PT as WithUnderlier>::Underlier: UnderlierWithBitConstants,

source§

fn square(self) -> PT

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,

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
§

impl<I, T> TransparentWrapperAlloc<I> for T
where T: TransparentWrapper<I> + ?Sized, I: ?Sized,

§

fn wrap_vec(s: Vec<Inner>) -> Vec<Self>
where Self: Sized,

Convert a vec of the inner type into a vec of the wrapper type.
§

fn wrap_box(s: Box<Inner>) -> Box<Self>

Convert a box to the inner type into a box to the wrapper type.
§

fn wrap_rc(s: Rc<Inner>) -> Rc<Self>

Convert an Rc to the inner type into an Rc to the wrapper type.
§

fn wrap_arc(s: Arc<Inner>) -> Arc<Self>

Convert an Arc to the inner type into an Arc to the wrapper type.
§

fn peel_vec(s: Vec<Self>) -> Vec<Inner>
where Self: Sized,

Convert a vec of the wrapper type into a vec of the inner type.
§

fn peel_box(s: Box<Self>) -> Box<Inner>

Convert a box to the wrapper type into a box to the inner type.
§

fn peel_rc(s: Rc<Self>) -> Rc<Inner>

Convert an Rc to the wrapper type into an Rc to the inner type.
§

fn peel_arc(s: Arc<Self>) -> Arc<Inner>

Convert an Arc to the wrapper type into an Arc to the inner type.
source§

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

§

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>,

§

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
§

impl<T> AnyBitPattern for T
where T: Pod,

§

impl<T> NoUninit for T
where T: Pod,

source§

impl<PT> PackedBinaryField for PT

source§

impl<PT1, PT2> RepackedExtension<PT1> for PT2
where PT1: PackedField, PT2: PackedExtension<<PT1 as PackedField>::Scalar, PackedSubfield = PT1>, <PT2 as PackedField>::Scalar: ExtensionField<<PT1 as PackedField>::Scalar>,