pub type ArrayvecStorage<T, N> = ArrayvecStorageRaw<T, N, IndexForCapacity<N>>;
Expand description
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 likely won’t need to interact with this type directly, except in where
clauses when
working with GenericArrayVec
and GenericArrayString
; see their docs for details.
Aliased Type§
#[repr(transparent)]pub struct ArrayvecStorage<T, N>(pub GenericArray<T, N>, _);
Tuple Fields§
§0: GenericArray<T, N>
Implementations
Source§impl<T, N, I> ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T>,
impl<T, N, I> ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T>,
Sourcepub fn new(arr: GenericArray<T, N>) -> Self
pub fn new(arr: GenericArray<T, N>) -> Self
Wraps the given GenericArray
into a new Wrapper
.
Sourcepub fn into_inner(self) -> GenericArray<T, N>
pub fn into_inner(self) -> GenericArray<T, N>
Returns the inner GenericArray
inside this Wrapper
Trait Implementations
Source§impl<T, N> Array for ArrayvecStorageRaw<T, N, u16>
impl<T, N> Array for ArrayvecStorageRaw<T, N, u16>
Source§impl<T, N> Array for ArrayvecStorageRaw<T, N, u32>
impl<T, N> Array for ArrayvecStorageRaw<T, N, u32>
Source§impl<T, N> Array for ArrayvecStorageRaw<T, N, u8>
impl<T, N> Array for ArrayvecStorageRaw<T, N, u8>
Source§impl<T, N> Array for ArrayvecStorageRaw<T, N, usize>where
N: ArrayLength<T>,
impl<T, N> Array for ArrayvecStorageRaw<T, N, usize>where
N: ArrayLength<T>,
Source§impl<T: Clone, N, I: Clone> Clone for ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T> + Clone,
impl<T: Clone, N, I: Clone> Clone for ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T> + Clone,
Source§fn clone(&self) -> ArrayvecStorageRaw<T, N, I>
fn clone(&self) -> ArrayvecStorageRaw<T, N, I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug, N, I: Debug> Debug for ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T> + Debug,
impl<T: Debug, N, I: Debug> Debug for ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T> + Debug,
Source§impl<T, N, I> From<GenericArray<T, N>> for ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T>,
impl<T, N, I> From<GenericArray<T, N>> for ArrayvecStorageRaw<T, N, I>where
N: ArrayLength<T>,
Source§fn from(arr: GenericArray<T, N>) -> Self
fn from(arr: GenericArray<T, N>) -> Self
Converts to this type from the input type.