[−][src]Struct generic_arrayvec::Wrapper
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]
N: ArrayLength<T>,
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]
N: ArrayLength<T>,
type Item = T
The array’s element type
type Index = usize
const CAPACITY: usize
[src]
fn as_slice(&self) -> &[Self::Item]
[src]
fn as_mut_slice(&mut self) -> &mut [Self::Item]
[src]
impl<T: Clone, N: Clone> Clone for Wrapper<T, N> where
N: ArrayLength<T>,
[src]
N: ArrayLength<T>,
impl<T, N> Copy for Wrapper<T, N> where
T: Copy,
N: ArrayLength<T>,
N::ArrayType: Copy,
[src]
T: Copy,
N: ArrayLength<T>,
N::ArrayType: Copy,
impl<T: Debug, N: Debug> Debug for Wrapper<T, N> where
N: ArrayLength<T>,
[src]
N: ArrayLength<T>,
impl<T, N> From<GenericArray<T, N>> for Wrapper<T, N> where
N: ArrayLength<T>,
[src]
N: ArrayLength<T>,
fn from(arr: GenericArray<T, N>) -> Self
[src]
impl<T, N> Into<GenericArray<T, N>> for Wrapper<T, N> where
N: ArrayLength<T>,
[src]
N: ArrayLength<T>,
fn into(self) -> GenericArray<T, N>
[src]
Auto Trait Implementations
impl<T, N> RefUnwindSafe for Wrapper<T, N> where
<N as ArrayLength<T>>::ArrayType: RefUnwindSafe,
<N as ArrayLength<T>>::ArrayType: RefUnwindSafe,
impl<T, N> Send for Wrapper<T, N> where
T: Send,
T: Send,
impl<T, N> Sync for Wrapper<T, N> where
T: Sync,
T: Sync,
impl<T, N> Unpin for Wrapper<T, N> where
<N as ArrayLength<T>>::ArrayType: Unpin,
<N as ArrayLength<T>>::ArrayType: Unpin,
impl<T, N> UnwindSafe for Wrapper<T, N> where
<N as ArrayLength<T>>::ArrayType: UnwindSafe,
<N as ArrayLength<T>>::ArrayType: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,