binius_field::underlier

Struct IterationMethods

Source
pub struct IterationMethods<T, U>(/* private fields */);
Expand description

IterationMethods<T, U> is supposed to implement an optimal strategy for the pair of types (T, U).

Trait Implementations§

Source§

impl<T: Clone, U: Clone> Clone for IterationMethods<T, U>

Source§

fn clone(&self) -> IterationMethods<T, U>

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<T: Debug, U: Debug> Debug for IterationMethods<T, U>

Source§

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

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

impl<T: Default, U: Default> Default for IterationMethods<T, U>

Source§

fn default() -> IterationMethods<T, U>

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

impl IterationStrategy<SmallU<1>, SmallU<1>> for IterationMethods<U1, U1>

Source§

fn ref_iter(value: &U1) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: U1) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[U1]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<1>, SmallU<2>> for IterationMethods<U1, U2>

Source§

fn ref_iter(value: &U2) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: U2) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[U2]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<1>, SmallU<4>> for IterationMethods<U1, U4>

Source§

fn ref_iter(value: &U4) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: U4) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[U4]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<1>, u128> for IterationMethods<U1, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<1>, u16> for IterationMethods<U1, u16>

Source§

fn ref_iter(value: &u16) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u16) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u16]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<1>, u32> for IterationMethods<U1, u32>

Source§

fn ref_iter(value: &u32) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u32) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u32]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<1>, u64> for IterationMethods<U1, u64>

Source§

fn ref_iter(value: &u64) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u64) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u64]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<1>, u8> for IterationMethods<U1, u8>

Source§

fn ref_iter(value: &u8) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u8) -> impl Iterator<Item = U1> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u8]) -> impl Iterator<Item = U1> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<2>, SmallU<2>> for IterationMethods<U2, U2>

Source§

fn ref_iter(value: &U2) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: U2) -> impl Iterator<Item = U2> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[U2]) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<2>, SmallU<4>> for IterationMethods<U2, U4>

Source§

fn ref_iter(value: &U4) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: U4) -> impl Iterator<Item = U2> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[U4]) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<2>, u128> for IterationMethods<U2, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = U2> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<2>, u16> for IterationMethods<U2, u16>

Source§

fn ref_iter(value: &u16) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u16) -> impl Iterator<Item = U2> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u16]) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<2>, u32> for IterationMethods<U2, u32>

Source§

fn ref_iter(value: &u32) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u32) -> impl Iterator<Item = U2> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u32]) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<2>, u64> for IterationMethods<U2, u64>

Source§

fn ref_iter(value: &u64) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u64) -> impl Iterator<Item = U2> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u64]) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<2>, u8> for IterationMethods<U2, u8>

Source§

fn ref_iter(value: &u8) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u8) -> impl Iterator<Item = U2> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u8]) -> impl Iterator<Item = U2> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<4>, SmallU<4>> for IterationMethods<U4, U4>

Source§

fn ref_iter(value: &U4) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: U4) -> impl Iterator<Item = U4> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[U4]) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<4>, u128> for IterationMethods<U4, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = U4> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<4>, u16> for IterationMethods<U4, u16>

Source§

fn ref_iter(value: &u16) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u16) -> impl Iterator<Item = U4> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u16]) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<4>, u32> for IterationMethods<U4, u32>

Source§

fn ref_iter(value: &u32) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u32) -> impl Iterator<Item = U4> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u32]) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<4>, u64> for IterationMethods<U4, u64>

Source§

fn ref_iter(value: &u64) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u64) -> impl Iterator<Item = U4> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u64]) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<SmallU<4>, u8> for IterationMethods<U4, u8>

Source§

fn ref_iter(value: &u8) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u8) -> impl Iterator<Item = U4> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u8]) -> impl Iterator<Item = U4> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u128, u128> for IterationMethods<u128, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = u128> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = u128> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = u128> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u16, u128> for IterationMethods<u16, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = u16> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u16, u16> for IterationMethods<u16, u16>

Source§

fn ref_iter(value: &u16) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u16) -> impl Iterator<Item = u16> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u16]) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u16, u32> for IterationMethods<u16, u32>

Source§

fn ref_iter(value: &u32) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u32) -> impl Iterator<Item = u16> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u32]) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u16, u64> for IterationMethods<u16, u64>

Source§

fn ref_iter(value: &u64) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u64) -> impl Iterator<Item = u16> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u64]) -> impl Iterator<Item = u16> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u32, u128> for IterationMethods<u32, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = u32> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = u32> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = u32> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u32, u32> for IterationMethods<u32, u32>

Source§

fn ref_iter(value: &u32) -> impl Iterator<Item = u32> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u32) -> impl Iterator<Item = u32> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u32]) -> impl Iterator<Item = u32> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u32, u64> for IterationMethods<u32, u64>

Source§

fn ref_iter(value: &u64) -> impl Iterator<Item = u32> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u64) -> impl Iterator<Item = u32> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u64]) -> impl Iterator<Item = u32> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u64, u128> for IterationMethods<u64, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = u64> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = u64> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = u64> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u64, u64> for IterationMethods<u64, u64>

Source§

fn ref_iter(value: &u64) -> impl Iterator<Item = u64> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u64) -> impl Iterator<Item = u64> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u64]) -> impl Iterator<Item = u64> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u8, u128> for IterationMethods<u8, u128>

Source§

fn ref_iter(value: &u128) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u128) -> impl Iterator<Item = u8> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u128]) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u8, u16> for IterationMethods<u8, u16>

Source§

fn ref_iter(value: &u16) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u16) -> impl Iterator<Item = u8> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u16]) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u8, u32> for IterationMethods<u8, u32>

Source§

fn ref_iter(value: &u32) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u32) -> impl Iterator<Item = u8> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u32]) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u8, u64> for IterationMethods<u8, u64>

Source§

fn ref_iter(value: &u64) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u64) -> impl Iterator<Item = u8> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u64]) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl IterationStrategy<u8, u8> for IterationMethods<u8, u8>

Source§

fn ref_iter(value: &u8) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given reference.
Source§

fn value_iter(value: u8) -> impl Iterator<Item = u8> + Send

Iterate over the subvalues of the given value.
Source§

fn slice_iter(slice: &[u8]) -> impl Iterator<Item = u8> + Send + '_

Iterate over the subvalues of the given slice.
Source§

impl<T: PartialEq, U: PartialEq> PartialEq for IterationMethods<T, U>

Source§

fn eq(&self, other: &IterationMethods<T, U>) -> 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<T: Copy, U: Copy> Copy for IterationMethods<T, U>

Source§

impl<T: Eq, U: Eq> Eq for IterationMethods<T, U>

Source§

impl<T, U> StructuralPartialEq for IterationMethods<T, U>

Auto Trait Implementations§

§

impl<T, U> Freeze for IterationMethods<T, U>

§

impl<T, U> RefUnwindSafe for IterationMethods<T, U>

§

impl<T, U> Send for IterationMethods<T, U>
where T: Send, U: Send,

§

impl<T, U> Sync for IterationMethods<T, U>
where T: Sync, U: Sync,

§

impl<T, U> Unpin for IterationMethods<T, U>
where T: Unpin, U: Unpin,

§

impl<T, U> UnwindSafe for IterationMethods<T, U>
where T: UnwindSafe, U: 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
Source§

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

Source§

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

🔬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.

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> Same for T

Source§

type Output = T

Should always be Self
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