Struct generic_arrayvec::Wrapper [−][src]
pub struct Wrapper<T, N>(pub GenericArray<T, N>)
where
N: ArrayLength<T>;
A wrapper around a GenericArray that implements the Array trait, allowing it to be used
as the backing store for ArrayVec and ArrayString.
You don't need to use this type directly; it's used by other functions in this crate internally.
Methods
impl<T, N> Wrapper<T, N> where
N: ArrayLength<T>, [src]
impl<T, N> Wrapper<T, N> where
N: ArrayLength<T>, pub fn into_inner(self) -> GenericArray<T, N>[src]
pub fn into_inner(self) -> GenericArray<T, N>Returns the inner GenericArray inside this Wrapper
Trait Implementations
impl<T: Debug, N: Debug> Debug for Wrapper<T, N> where
N: ArrayLength<T>, [src]
impl<T: Debug, N: Debug> Debug for Wrapper<T, N> where
N: ArrayLength<T>, fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T, N> Array for Wrapper<T, N> where
N: ArrayLength<T>, [src]
impl<T, N> Array for Wrapper<T, N> where
N: ArrayLength<T>, type Item = T
The array’s element type
type Index = usize
fn as_ptr(&self) -> *const Self::Item[src]
fn as_ptr(&self) -> *const Self::Itemfn as_mut_ptr(&mut self) -> *mut Self::Item[src]
fn as_mut_ptr(&mut self) -> *mut Self::Itemfn capacity() -> usize[src]
fn capacity() -> usizeimpl<T, N> From<GenericArray<T, N>> for Wrapper<T, N> where
N: ArrayLength<T>, [src]
impl<T, N> From<GenericArray<T, N>> for Wrapper<T, N> where
N: ArrayLength<T>, fn from(arr: GenericArray<T, N>) -> Self[src]
fn from(arr: GenericArray<T, N>) -> SelfPerforms the conversion.
impl<T, N> Into<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>, fn into(self) -> GenericArray<T, N>[src]
fn into(self) -> GenericArray<T, N>Performs the conversion.