PackedPrimitiveType

Struct PackedPrimitiveType 

Source
#[repr(transparent)]
pub struct PackedPrimitiveType<U: UnderlierType, Scalar: BinaryField>(pub U, pub PhantomData<Scalar>);

Tuple Fields§

§0: U§1: PhantomData<Scalar>

Implementations§

Source§

impl<U: UnderlierType, Scalar: BinaryField> PackedPrimitiveType<U, Scalar>

Source

pub const WIDTH: usize

Source

pub const LOG_WIDTH: usize

Source

pub const fn from_underlier(val: U) -> Self

Source

pub const fn to_underlier(self) -> U

Trait Implementations§

Source§

impl<U: UnderlierType, Scalar: BinaryField> Add<Scalar> for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + Add<Output = Self>,

Source§

type Output = PackedPrimitiveType<U, Scalar>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<U: UnderlierWithBitOps, Scalar: BinaryField> Add for PackedPrimitiveType<U, Scalar>

Source§

type Output = PackedPrimitiveType<U, Scalar>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<U: UnderlierType, Scalar: BinaryField> AddAssign<Scalar> for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + AddAssign<Self>,

Source§

fn add_assign(&mut self, rhs: Scalar)

Performs the += operation. Read more
Source§

impl<U: UnderlierType, Scalar: BinaryField> AddAssign for PackedPrimitiveType<U, Scalar>
where Self: Add<Output = Self>,

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<M128, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<M256, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<M512, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<u128, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<u16, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<u32, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<u64, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<AESTowerField8b> for PackedPrimitiveType<u8, AESTowerField8b>

Source§

fn broadcast(scalar: AESTowerField8b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField128bGhash> for PackedPrimitiveType<M128, BinaryField128bGhash>

Source§

fn broadcast(scalar: BinaryField128bGhash) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField128bGhash> for PackedPrimitiveType<M256, BinaryField128bGhash>

Source§

fn broadcast(scalar: BinaryField128bGhash) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField128bGhash> for PackedPrimitiveType<M512, BinaryField128bGhash>

Source§

fn broadcast(scalar: BinaryField128bGhash) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField128bGhash> for PackedPrimitiveType<u128, BinaryField128bGhash>

Source§

fn broadcast(scalar: BinaryField128bGhash) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<M128, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<M256, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<M512, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<SmallU<1>, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<SmallU<2>, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<SmallU<4>, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<u128, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<u16, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<u32, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<u64, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl Broadcast<BinaryField1b> for PackedPrimitiveType<u8, BinaryField1b>

Source§

fn broadcast(scalar: BinaryField1b) -> Self

Set `scalar`` value to all the positions
Source§

impl<U: Clone + UnderlierType, Scalar: Clone + BinaryField> Clone for PackedPrimitiveType<U, Scalar>

Source§

fn clone(&self) -> PackedPrimitiveType<U, Scalar>

Returns a duplicate 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<U: UnderlierWithBitOps, Scalar: BinaryField> Debug for PackedPrimitiveType<U, Scalar>
where Self: PackedField,

Source§

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

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

impl<U: Default + UnderlierType, Scalar: Default + BinaryField> Default for PackedPrimitiveType<U, Scalar>

Source§

fn default() -> PackedPrimitiveType<U, Scalar>

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

impl DeserializeBytes for PackedPrimitiveType<u128, AESTowerField8b>

Source§

fn deserialize(read_buf: impl Buf) -> Result<Self, SerializationError>

Source§

impl DeserializeBytes for PackedPrimitiveType<u128, BinaryField128bGhash>

Source§

fn deserialize(read_buf: impl Buf) -> Result<Self, SerializationError>

Source§

impl DeserializeBytes for PackedPrimitiveType<u128, BinaryField1b>

Source§

fn deserialize(read_buf: impl Buf) -> Result<Self, SerializationError>

Source§

impl<U: UnderlierType, Scalar: BinaryField> Distribution<PackedPrimitiveType<U, Scalar>> for StandardUniform

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> PackedPrimitiveType<U, Scalar>

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> Iter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> Map<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Map sampled values to type S Read more
Source§

impl<Scalar: BinaryField> From<PackedPrimitiveType<M128, Scalar>> for __m128i

Source§

fn from(value: PackedPrimitiveType<M128, Scalar>) -> Self

Converts to this type from the input type.
Source§

impl<U: UnderlierType, Scalar: BinaryField> From<U> for PackedPrimitiveType<U, Scalar>

Source§

fn from(val: U) -> Self

Converts to this type from the input type.
Source§

impl<Scalar: BinaryField> From<__m128i> for PackedPrimitiveType<M128, Scalar>

Source§

fn from(value: __m128i) -> Self

Converts to this type from the input type.
Source§

impl<Scalar: BinaryField> From<u128> for PackedPrimitiveType<M128, Scalar>

Source§

fn from(value: u128) -> Self

Converts to this type from the input type.
Source§

impl InvertOrZero for PackedPrimitiveType<u128, AESTowerField8b>

Source§

fn invert_or_zero(self) -> Self

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

impl InvertOrZero for PackedPrimitiveType<u128, BinaryField128bGhash>

Source§

fn invert_or_zero(self) -> Self

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

impl InvertOrZero for PackedPrimitiveType<u128, BinaryField1b>

Source§

fn invert_or_zero(self) -> Self

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

impl<U: UnderlierType, Scalar: BinaryField> Mul<Scalar> for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + Mul<Output = Self>,

Source§

type Output = PackedPrimitiveType<U, Scalar>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for PackedPrimitiveType<u128, AESTowerField8b>

Source§

type Output = PackedPrimitiveType<u128, AESTowerField8b>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for PackedPrimitiveType<u128, BinaryField128bGhash>

Source§

type Output = PackedPrimitiveType<u128, BinaryField128bGhash>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for PackedPrimitiveType<u128, BinaryField1b>

Source§

type Output = PackedPrimitiveType<u128, BinaryField1b>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAlpha for PackedPrimitiveType<u128, AESTowerField8b>

Source§

fn mul_alpha(self) -> Self

Multiply self by alpha
Source§

impl MulAlpha for PackedPrimitiveType<u128, BinaryField1b>

Source§

fn mul_alpha(self) -> Self

Multiply self by alpha
Source§

impl<U: UnderlierType, Scalar: BinaryField> MulAssign<Scalar> for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + MulAssign<Self>,

Source§

fn mul_assign(&mut self, rhs: Scalar)

Performs the *= operation. Read more
Source§

impl<U: UnderlierType, Scalar: BinaryField> MulAssign for PackedPrimitiveType<U, Scalar>
where Self: Mul<Output = Self>,

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl<U, Scalar> PackedField for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + Square + InvertOrZero + Mul<Output = Self>, U: UnderlierWithBitOps + Divisible<Scalar::Underlier>, Scalar: BinaryField,

Source§

const LOG_WIDTH: usize

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

type Scalar = Scalar

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: Scalar)

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

fn zero() -> Self

Source§

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

Source§

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

Source§

fn iter_slice( slice: &[Self], ) -> impl Iterator<Item = Self::Scalar> + Send + Clone + '_

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§

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

Unzips interleaved blocks of this packed vector with another packed vector. Read more
Source§

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

Unsafe version of Self::spread. Read more
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§

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 one() -> Self

Source§

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

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

fn try_from_fn<E>( f: impl FnMut(usize) -> Result<Self::Scalar, E>, ) -> Result<Self, E>

Creates a packed field from a fallible function applied to each index.
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 pow(self, exp: u64) -> Self

Returns the value to the power exp.
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§

impl<U: PartialEq + UnderlierType, Scalar: PartialEq + BinaryField> PartialEq for PackedPrimitiveType<U, Scalar>

Source§

fn eq(&self, other: &PackedPrimitiveType<U, Scalar>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.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<U: UnderlierType, Scalar: BinaryField> Product for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + Mul<Output = Self>,

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 SerializeBytes for PackedPrimitiveType<u128, AESTowerField8b>

Source§

fn serialize(&self, write_buf: impl BufMut) -> Result<(), SerializationError>

Source§

impl SerializeBytes for PackedPrimitiveType<u128, BinaryField128bGhash>

Source§

fn serialize(&self, write_buf: impl BufMut) -> Result<(), SerializationError>

Source§

impl SerializeBytes for PackedPrimitiveType<u128, BinaryField1b>

Source§

fn serialize(&self, write_buf: impl BufMut) -> Result<(), SerializationError>

Source§

impl Square for PackedPrimitiveType<u128, AESTowerField8b>

Source§

fn square(self) -> Self

Returns the value multiplied by itself
Source§

impl Square for PackedPrimitiveType<u128, BinaryField128bGhash>

Source§

fn square(self) -> Self

Returns the value multiplied by itself
Source§

impl Square for PackedPrimitiveType<u128, BinaryField1b>

Source§

fn square(self) -> Self

Returns the value multiplied by itself
Source§

impl<U: UnderlierType, Scalar: BinaryField> Sub<Scalar> for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + Sub<Output = Self>,

Source§

type Output = PackedPrimitiveType<U, Scalar>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<U: UnderlierWithBitOps, Scalar: BinaryField> Sub for PackedPrimitiveType<U, Scalar>

Source§

type Output = PackedPrimitiveType<U, Scalar>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<U: UnderlierType, Scalar: BinaryField> SubAssign<Scalar> for PackedPrimitiveType<U, Scalar>
where Self: Broadcast<Scalar> + SubAssign<Self>,

Source§

fn sub_assign(&mut self, rhs: Scalar)

Performs the -= operation. Read more
Source§

impl<U: UnderlierType, Scalar: BinaryField> SubAssign for PackedPrimitiveType<U, Scalar>
where Self: Sub<Output = Self>,

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<U: UnderlierType, Scalar: BinaryField> Sum for PackedPrimitiveType<U, Scalar>
where Self: Add<Output = Self>,

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<U: UnderlierWithBitOps> TaggedInvertOrZero<BitwiseAndStrategy> for PackedPrimitiveType<U, BinaryField1b>

Source§

fn invert_or_zero(self) -> Self

Source§

impl<U: UnderlierType> TaggedInvertOrZero<PairwiseTableStrategy> for PackedPrimitiveType<U, AESTowerField8b>
where Self: PackedField<Scalar = AESTowerField8b>,

Source§

fn invert_or_zero(self) -> Self

Source§

impl<U: UnderlierType + Pod, Scalar: BinaryField, const N: usize> TaggedInvertOrZero<ScaledStrategy> for PackedPrimitiveType<ScaledUnderlier<U, N>, Scalar>

Source§

fn invert_or_zero(self) -> Self

Source§

impl<U: UnderlierWithBitOps> TaggedMul<BitwiseAndStrategy> for PackedPrimitiveType<U, BinaryField1b>

Source§

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

Source§

impl<U: UnderlierType> TaggedMul<PairwiseTableStrategy> for PackedPrimitiveType<U, AESTowerField8b>
where Self: PackedField<Scalar = AESTowerField8b>,

Source§

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

Source§

impl<U: UnderlierType + Pod, Scalar: BinaryField, const N: usize> TaggedMul<ScaledStrategy> for PackedPrimitiveType<ScaledUnderlier<U, N>, Scalar>
where PackedPrimitiveType<U, Scalar>: Mul<Output = PackedPrimitiveType<U, Scalar>>,

Source§

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

Source§

impl<U: UnderlierWithBitOps> TaggedMulAlpha<BitwiseAndStrategy> for PackedPrimitiveType<U, BinaryField1b>

Source§

fn mul_alpha(self) -> Self

Source§

impl<U: UnderlierType> TaggedMulAlpha<PairwiseTableStrategy> for PackedPrimitiveType<U, AESTowerField8b>
where Self: PackedField<Scalar = AESTowerField8b>,

Source§

fn mul_alpha(self) -> Self

Source§

impl<U: UnderlierType + Pod, Scalar: BinaryField, const N: usize> TaggedMulAlpha<ScaledStrategy> for PackedPrimitiveType<ScaledUnderlier<U, N>, Scalar>
where PackedPrimitiveType<U, Scalar>: MulAlpha,

Source§

fn mul_alpha(self) -> Self

Source§

impl<U: UnderlierWithBitOps> TaggedSquare<BitwiseAndStrategy> for PackedPrimitiveType<U, BinaryField1b>

Source§

fn square(self) -> Self

Source§

impl<U: UnderlierType> TaggedSquare<PairwiseTableStrategy> for PackedPrimitiveType<U, AESTowerField8b>
where Self: PackedField<Scalar = AESTowerField8b>,

Source§

fn square(self) -> Self

Source§

impl<U: UnderlierType + Pod, Scalar: BinaryField, const N: usize> TaggedSquare<ScaledStrategy> for PackedPrimitiveType<ScaledUnderlier<U, N>, Scalar>
where PackedPrimitiveType<U, Scalar>: Square,

Source§

fn square(self) -> Self

Source§

impl<U: UnderlierType, Scalar: BinaryField> TransparentWrapper<U> for PackedPrimitiveType<U, Scalar>

§

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<U: UnderlierType, Scalar: BinaryField> WithUnderlier for PackedPrimitiveType<U, Scalar>

Source§

type Underlier = U

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 to_underliers_arr<const N: usize>(val: [Self; N]) -> [Self::Underlier; N]

Source§

fn to_underliers_arr_ref<const N: usize>( val: &[Self; N], ) -> &[Self::Underlier; N]

Source§

fn to_underliers_arr_ref_mut<const N: usize>( val: &mut [Self; N], ) -> &mut [Self::Underlier; N]

Source§

fn from_underliers_arr<const N: usize>(val: [Self::Underlier; N]) -> [Self; N]

Source§

fn from_underliers_arr_ref<const N: usize>( val: &[Self::Underlier; N], ) -> &[Self; N]

Source§

fn from_underliers_arr_ref_mut<const N: usize>( val: &mut [Self::Underlier; N], ) -> &mut [Self; N]

Source§

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

Source§

impl<U: UnderlierType + Zeroable, Scalar: BinaryField> Zeroable for PackedPrimitiveType<U, Scalar>

§

fn zeroed() -> Self

Source§

impl<U: Copy + UnderlierType, Scalar: Copy + BinaryField> Copy for PackedPrimitiveType<U, Scalar>

Source§

impl<U: Eq + UnderlierType, Scalar: Eq + BinaryField> Eq for PackedPrimitiveType<U, Scalar>

Source§

impl<U: UnderlierType + Pod, Scalar: BinaryField> Pod for PackedPrimitiveType<U, Scalar>

Source§

impl<U: UnderlierType, Scalar: BinaryField> StructuralPartialEq for PackedPrimitiveType<U, Scalar>

Auto Trait Implementations§

§

impl<U, Scalar> Freeze for PackedPrimitiveType<U, Scalar>
where <Scalar as WithUnderlier>::Underlier: Sized, U: Freeze,

§

impl<U, Scalar> RefUnwindSafe for PackedPrimitiveType<U, Scalar>
where <Scalar as WithUnderlier>::Underlier: Sized, U: RefUnwindSafe, Scalar: RefUnwindSafe,

§

impl<U, Scalar> Send for PackedPrimitiveType<U, Scalar>
where <Scalar as WithUnderlier>::Underlier: Sized,

§

impl<U, Scalar> Sync for PackedPrimitiveType<U, Scalar>
where <Scalar as WithUnderlier>::Underlier: Sized,

§

impl<U, Scalar> Unpin for PackedPrimitiveType<U, Scalar>
where <Scalar as WithUnderlier>::Underlier: Sized, U: Unpin, Scalar: Unpin,

§

impl<U, Scalar> UnwindSafe for PackedPrimitiveType<U, Scalar>
where <Scalar as WithUnderlier>::Underlier: Sized, U: UnwindSafe, Scalar: UnwindSafe,

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
§

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<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<T> Random for T

Source§

fn random(rng: impl Rng) -> T

Generate random value
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<PT> TaggedInvertOrZero<PairwiseStrategy> for PT

Source§

fn invert_or_zero(self) -> PT

Source§

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

Source§

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

Source§

impl<T> TaggedMulAlpha<ReuseMultiplyStrategy> for T
where T: Mul<Output = T> + Alpha,

Source§

fn mul_alpha(self) -> T

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
§

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

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
§

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

§

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

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