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§
impl UnrollableArraySize<0> for ArrayUnrolledOps
impl UnrollableArraySize<1> for ArrayUnrolledOps
impl UnrollableArraySize<10> for ArrayUnrolledOps
impl UnrollableArraySize<11> for ArrayUnrolledOps
impl UnrollableArraySize<12> for ArrayUnrolledOps
impl UnrollableArraySize<13> for ArrayUnrolledOps
impl UnrollableArraySize<14> for ArrayUnrolledOps
impl UnrollableArraySize<15> for ArrayUnrolledOps
impl UnrollableArraySize<16> for ArrayUnrolledOps
impl UnrollableArraySize<17> for ArrayUnrolledOps
impl UnrollableArraySize<18> for ArrayUnrolledOps
impl UnrollableArraySize<19> for ArrayUnrolledOps
impl UnrollableArraySize<2> for ArrayUnrolledOps
impl UnrollableArraySize<20> for ArrayUnrolledOps
impl UnrollableArraySize<21> for ArrayUnrolledOps
impl UnrollableArraySize<22> for ArrayUnrolledOps
impl UnrollableArraySize<23> for ArrayUnrolledOps
impl UnrollableArraySize<24> for ArrayUnrolledOps
impl UnrollableArraySize<25> for ArrayUnrolledOps
impl UnrollableArraySize<26> for ArrayUnrolledOps
impl UnrollableArraySize<27> for ArrayUnrolledOps
impl UnrollableArraySize<28> for ArrayUnrolledOps
impl UnrollableArraySize<29> for ArrayUnrolledOps
impl UnrollableArraySize<3> for ArrayUnrolledOps
impl UnrollableArraySize<30> for ArrayUnrolledOps
impl UnrollableArraySize<31> for ArrayUnrolledOps
impl UnrollableArraySize<32> for ArrayUnrolledOps
impl UnrollableArraySize<4> for ArrayUnrolledOps
impl UnrollableArraySize<5> for ArrayUnrolledOps
impl UnrollableArraySize<6> for ArrayUnrolledOps
impl UnrollableArraySize<7> for ArrayUnrolledOps
impl UnrollableArraySize<8> for ArrayUnrolledOps
impl UnrollableArraySize<9> for ArrayUnrolledOps
Auto Trait Implementations§
impl Freeze for ArrayUnrolledOps
impl RefUnwindSafe for ArrayUnrolledOps
impl Send for ArrayUnrolledOps
impl Sync for ArrayUnrolledOps
impl Unpin for ArrayUnrolledOps
impl UnwindSafe for ArrayUnrolledOps
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