[][src]Struct cl_traits::ArrayWrapper

pub struct ArrayWrapper<T, const N: usize> { /* fields omitted */ }

Arbitrary length array wrapper. This structure is necessary for third-party and std implementations.

Methods

impl<T, const N: usize> ArrayWrapper<T, N>[src]

pub fn new(array: [T; N]) -> Self[src]

Wraps array into this structure.

Trait Implementations

impl<T, const N: usize> AsMut<[T; N]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> AsMut<[T]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> AsRef<[T; N]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> AsRef<[T]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> Borrow<[T; N]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> Borrow<[T]> for ArrayWrapper<T, N>[src]

impl<'_, T, const N: usize> Borrow<[T]> for &'_ ArrayWrapper<T, N>[src]

impl<T, const N: usize> BorrowMut<[T; N]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> BorrowMut<[T]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> Clone for ArrayWrapper<T, N> where
    T: Clone
[src]

impl<T, const N: usize> Copy for ArrayWrapper<T, N> where
    T: Copy
[src]

impl<T, const N: usize> Debug for ArrayWrapper<T, N> where
    T: Debug
[src]

impl<T, const N: usize> Default for ArrayWrapper<T, N> where
    T: Default
[src]

impl<T, const N: usize> Deref for ArrayWrapper<T, N>[src]

type Target = [T; N]

The resulting type after dereferencing.

impl<T, const N: usize> DerefMut for ArrayWrapper<T, N>[src]

impl<T, const N: usize> Eq for ArrayWrapper<T, N> where
    T: Eq
[src]

impl<T, const N: usize> From<[T; N]> for ArrayWrapper<T, N>[src]

impl<T, const N: usize> From<ArrayWrapper<T, N>> for [T; N][src]

impl<I, T, const N: usize> Index<I> for ArrayWrapper<T, N> where
    I: SliceIndex<[T]>, 
[src]

type Output = <I as SliceIndex<[T]>>::Output

The returned type after indexing.

impl<I, T, const N: usize> IndexMut<I> for ArrayWrapper<T, N> where
    I: SliceIndex<[T]>, 
[src]

impl<'a, T, const N: usize> IntoIterator for &'a ArrayWrapper<T, N>[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

impl<'a, T, const N: usize> IntoIterator for &'a mut ArrayWrapper<T, N>[src]

type Item = &'a mut T

The type of the elements being iterated over.

type IntoIter = IterMut<'a, T>

Which kind of iterator are we turning this into?

impl<T, const N: usize> Ord for ArrayWrapper<T, N> where
    T: Ord
[src]

impl<T, const N: usize> PartialEq<ArrayWrapper<T, N>> for ArrayWrapper<T, N> where
    T: PartialEq
[src]

impl<T, const N: usize> PartialOrd<ArrayWrapper<T, N>> for ArrayWrapper<T, N> where
    T: PartialOrd
[src]

Auto Trait Implementations

impl<const N: usize, T> Send for ArrayWrapper<T, N> where
    T: Send

impl<const N: usize, T> Sync for ArrayWrapper<T, N> where
    T: Sync

impl<const N: usize, T> Unpin for ArrayWrapper<T, N> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.