[][src]Struct loaf::LoafNVec

#[repr(transparent)]pub struct LoafNVec<T, const N: usize> { /* fields omitted */ }

Implementations

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

pub fn from_vec(vec: Vec<T>) -> Result<Self, Vec<T>>[src]

pub fn into_vec(self) -> Vec<T>[src]

pub fn as_loaf(&self) -> &LoafN<T, N>[src]

pub fn as_mut_loaf(&mut self) -> &mut LoafN<T, N>[src]

pub fn as_mut_slice(&mut self) -> &mut [T][src]

pub fn as_slice(&self) -> &[T][src]

pub fn pop(&mut self) -> Option<T>[src]

pub fn into_boxed_loaf(self) -> Box<LoafN<T, N>>[src]

Methods from Deref<Target = LoafN<T, N>>

pub fn len(&self) -> usize[src]

pub fn first(&self) -> &T[src]

pub fn first_mut(&mut self) -> &mut T[src]

pub fn last(&self) -> &T[src]

pub fn last_mut(&mut self) -> &mut T[src]

pub fn as_slice(&self) -> &[T][src]

pub fn as_mut_slice(&mut self) -> &mut [T][src]

pub fn as_smallest_loaf(&self) -> &LoafN<T, 1>[src]

pub fn as_smallest_loaf_mut(&mut self) -> &mut LoafN<T, 1>[src]

pub fn split_first(&self) -> (&T, &[T])[src]

pub fn split_first_mut(&mut self) -> (&mut T, &mut [T])[src]

Trait Implementations

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

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

type Target = LoafN<T, N>

The resulting type after dereferencing.

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

Auto Trait Implementations

impl<const N: usize, T> Send for LoafNVec<T, N> where
    T: Send

impl<const N: usize, T> Sync for LoafNVec<T, N> where
    T: Sync

impl<const N: usize, T> Unpin for LoafNVec<T, N> where
    T: Unpin

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> 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.