[−][src]Struct loaf::LoafNVec
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]
fn clone(&self) -> LoafNVec<T, N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, const N: usize> Deref for LoafNVec<T, N>
[src]
type Target = LoafN<T, N>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
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,
T: Send,
impl<const N: usize, T> Sync for LoafNVec<T, N> where
T: Sync,
T: Sync,
impl<const N: usize, T> Unpin for LoafNVec<T, N> where
T: Unpin,
T: Unpin,
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> 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>,