[][src]Struct generic_arrayvec::Wrapper

pub struct Wrapper<T, N>(pub GenericArray<T, N>)
where
    N: ArrayLength<T>
;

A wrapper around a GenericArray that implements the Array trait from the arrayvec crate, allowing it to be used as the backing store for ArrayVec and ArrayString.

You probably don't need to use this type directly; just use the constructors provided by the GenericArrayVecExt and GenericArrayStringExt traits.

Implementations

impl<T, N> Wrapper<T, N> where
    N: ArrayLength<T>, 
[src]

pub fn into_inner(self) -> GenericArray<T, N>[src]

Returns the inner GenericArray inside this Wrapper

Trait Implementations

impl<T, N> Array for Wrapper<T, N> where
    N: ArrayLength<T>, 
[src]

type Item = T

The array’s element type

type Index = usize

impl<T: Clone, N: Clone> Clone for Wrapper<T, N> where
    N: ArrayLength<T>, 
[src]

impl<T, N> Copy for Wrapper<T, N> where
    T: Copy,
    N: ArrayLength<T>,
    N::ArrayType: Copy
[src]

impl<T: Debug, N: Debug> Debug for Wrapper<T, N> where
    N: ArrayLength<T>, 
[src]

impl<T, N> From<GenericArray<T, N>> for Wrapper<T, N> where
    N: ArrayLength<T>, 
[src]

impl<T, N> Into<GenericArray<T, N>> for Wrapper<T, N> where
    N: ArrayLength<T>, 
[src]

Auto Trait Implementations

impl<T, N> RefUnwindSafe for Wrapper<T, N> where
    <N as ArrayLength<T>>::ArrayType: RefUnwindSafe

impl<T, N> Send for Wrapper<T, N> where
    T: Send

impl<T, N> Sync for Wrapper<T, N> where
    T: Sync

impl<T, N> Unpin for Wrapper<T, N> where
    <N as ArrayLength<T>>::ArrayType: Unpin

impl<T, N> UnwindSafe for Wrapper<T, N> where
    <N as ArrayLength<T>>::ArrayType: 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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.