[][src]Struct ndsparse::ArrayWrapper

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

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

Methods

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

pub fn new(array: [T; N]) -> ArrayWrapper<T, N>[src]

Wraps array into this structure.

Trait Implementations

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

type Item = T

The type of the array's elements.

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

type Index = usize

type Item = T

The array’s element type

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Target = [T; N]

The resulting type after dereferencing.

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

impl<'de, const N: usize, T> Deserialize<'de> for ArrayWrapper<T, N> where
    T: Deserialize<'de> + 'de, 
[src]

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

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

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

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

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

The returned type after indexing.

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

impl<'a, const N: usize, T> 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<'a, const N: usize, T> 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<const N: usize, T> Ord for ArrayWrapper<T, N> where
    T: Ord
[src]

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

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

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

Auto Trait Implementations

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

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

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

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,