#[repr(transparent)]pub struct ScaledUnderlier<U, const N: usize>(pub [U; N]);
Expand description
A type that represents a pair of elements of the same underlier type.
We use it as an underlier for the ScaledPAckedField
type.
Tuple Fields§
§0: [U; N]
Trait Implementations§
source§impl<U: Clone, const N: usize> Clone for ScaledUnderlier<U, N>
impl<U: Clone, const N: usize> Clone for ScaledUnderlier<U, N>
source§fn clone(&self) -> ScaledUnderlier<U, N>
fn clone(&self) -> ScaledUnderlier<U, N>
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<U: ConstantTimeEq, const N: usize> ConstantTimeEq for ScaledUnderlier<U, N>
impl<U: ConstantTimeEq, const N: usize> ConstantTimeEq for ScaledUnderlier<U, N>
source§impl<U> Divisible<U> for ScaledUnderlier<ScaledUnderlier<U, 2>, 2>
impl<U> Divisible<U> for ScaledUnderlier<ScaledUnderlier<U, 2>, 2>
source§impl<U, const N: usize> Divisible<U> for ScaledUnderlier<U, N>
impl<U, const N: usize> Divisible<U> for ScaledUnderlier<U, N>
source§impl Divisible<u128> for ScaledUnderlier<M128, 2>
impl Divisible<u128> for ScaledUnderlier<M128, 2>
source§impl Divisible<u128> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
impl Divisible<u128> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
source§impl Divisible<u16> for ScaledUnderlier<M128, 2>
impl Divisible<u16> for ScaledUnderlier<M128, 2>
source§impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
source§impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
source§impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<u32, 2>, 2>
impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<u32, 2>, 2>
source§impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<u64, 2>, 2>
impl Divisible<u16> for ScaledUnderlier<ScaledUnderlier<u64, 2>, 2>
source§impl Divisible<u32> for ScaledUnderlier<M128, 2>
impl Divisible<u32> for ScaledUnderlier<M128, 2>
source§impl Divisible<u32> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
impl Divisible<u32> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
source§impl Divisible<u32> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
impl Divisible<u32> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
source§impl Divisible<u32> for ScaledUnderlier<ScaledUnderlier<u64, 2>, 2>
impl Divisible<u32> for ScaledUnderlier<ScaledUnderlier<u64, 2>, 2>
source§impl Divisible<u64> for ScaledUnderlier<M128, 2>
impl Divisible<u64> for ScaledUnderlier<M128, 2>
source§impl Divisible<u64> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
impl Divisible<u64> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
source§impl Divisible<u64> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
impl Divisible<u64> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
source§impl Divisible<u8> for ScaledUnderlier<M128, 2>
impl Divisible<u8> for ScaledUnderlier<M128, 2>
source§impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<M128, 2>, 2>
source§impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u128, 2>, 2>
source§impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u16, 2>, 2>
impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u16, 2>, 2>
source§impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u32, 2>, 2>
impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u32, 2>, 2>
source§impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u64, 2>, 2>
impl Divisible<u8> for ScaledUnderlier<ScaledUnderlier<u64, 2>, 2>
source§impl<U, const N: usize> From<ScaledUnderlier<U, N>> for [U; N]
impl<U, const N: usize> From<ScaledUnderlier<U, N>> for [U; N]
source§fn from(val: ScaledUnderlier<U, N>) -> Self
fn from(val: ScaledUnderlier<U, N>) -> Self
Converts to this type from the input type.
source§impl<U: Ord, const N: usize> Ord for ScaledUnderlier<U, N>
impl<U: Ord, const N: usize> Ord for ScaledUnderlier<U, N>
source§fn cmp(&self, other: &ScaledUnderlier<U, N>) -> Ordering
fn cmp(&self, other: &ScaledUnderlier<U, N>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<U, F, const N: usize> PackScalar<F> for ScaledUnderlier<U, N>where
U: PackScalar<F> + UnderlierType + Pod,
F: Field,
ScaledPackedField<U::Packed, N>: PackedField<Scalar = F> + WithUnderlier<Underlier = ScaledUnderlier<U, N>>,
impl<U, F, const N: usize> PackScalar<F> for ScaledUnderlier<U, N>where
U: PackScalar<F> + UnderlierType + Pod,
F: Field,
ScaledPackedField<U::Packed, N>: PackedField<Scalar = F> + WithUnderlier<Underlier = ScaledUnderlier<U, N>>,
type Packed = ScaledPackedField<<U as PackScalar<F>>::Packed, N>
source§impl<U: PartialOrd, const N: usize> PartialOrd for ScaledUnderlier<U, N>
impl<U: PartialOrd, const N: usize> PartialOrd for ScaledUnderlier<U, N>
source§impl<U: UnderlierType + Pod, const N: usize> UnderlierType for ScaledUnderlier<U, N>
impl<U: UnderlierType + Pod, const N: usize> UnderlierType for ScaledUnderlier<U, N>
source§impl<U: Zeroable, const N: usize> Zeroable for ScaledUnderlier<U, N>
impl<U: Zeroable, const N: usize> Zeroable for ScaledUnderlier<U, N>
impl<U: Copy, const N: usize> Copy for ScaledUnderlier<U, N>
impl<U: Eq, const N: usize> Eq for ScaledUnderlier<U, N>
impl<U: Pod, const N: usize> Pod for ScaledUnderlier<U, N>
impl<U, const N: usize> StructuralPartialEq for ScaledUnderlier<U, N>
Auto Trait Implementations§
impl<U, const N: usize> Freeze for ScaledUnderlier<U, N>where
U: Freeze,
impl<U, const N: usize> RefUnwindSafe for ScaledUnderlier<U, N>where
U: RefUnwindSafe,
impl<U, const N: usize> Send for ScaledUnderlier<U, N>where
U: Send,
impl<U, const N: usize> Sync for ScaledUnderlier<U, N>where
U: Sync,
impl<U, const N: usize> Unpin for ScaledUnderlier<U, N>where
U: Unpin,
impl<U, const N: usize> UnwindSafe for ScaledUnderlier<U, N>where
U: 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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
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
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 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<U> Divisible<U> for Uwhere
U: UnderlierType,
impl<U> Divisible<U> for Uwhere
U: UnderlierType,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<U> NumCast<U> for Uwhere
U: UnderlierType,
impl<U> NumCast<U> for Uwhere
U: UnderlierType,
fn num_cast_from(val: U) -> U
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<U> WithUnderlier for Uwhere
U: UnderlierType,
impl<U> WithUnderlier for Uwhere
U: UnderlierType,
source§fn to_underlier(self) -> <U as WithUnderlier>::Underlier
fn to_underlier(self) -> <U as WithUnderlier>::Underlier
Convert value to underlier.