Enum ArrayUnrolledOps

Source
pub enum ArrayUnrolledOps {}
Expand description

A type which can be used to require that unrolled operations exist for a given array size.

§Example

use vectoreyes::array_utils::*;
pub fn make_fun_array<const N: usize>() -> [usize; N]
    where ArrayUnrolledOps: UnrollableArraySize<N>
{
    <[usize; N]>::array_generate(|i| i + 10)
}
assert_eq!(make_fun_array::<4>(), [10, 11, 12, 13]);

Trait Implementations§

Source§

impl UnrollableArraySize<0> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<1> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<10> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<11> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<12> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<13> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<14> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<15> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<16> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<17> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<18> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<19> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<2> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<20> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<21> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<22> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<23> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<24> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<25> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<26> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<27> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<28> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<29> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<3> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<30> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<31> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<32> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<4> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<5> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<6> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<7> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<8> for ArrayUnrolledOps

Source§

impl UnrollableArraySize<9> for ArrayUnrolledOps

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

type Output = T

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