[][src]Struct calf_vec::generic::CalfVecMut

pub struct CalfVecMut<'v, 'a, M: Meta, T, const N: usize> { /* fields omitted */ }

Implementations

impl<'v, 'a, M: Meta, T, const N: usize> CalfVecMut<'v, 'a, M, T, N>[src]

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

pub fn is_empty(&self) -> bool[src]

Returns true if the vector contains no elements.

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

pub fn as_ptr(&self) -> *const T[src]

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

pub fn truncate(&mut self, len: usize)[src]

pub fn reserve(&mut self, additional: usize)[src]

pub fn append(&mut self, other: &mut Vec<T>)[src]

Moves all the elements of other into Self, leaving other empty.

Panics

Panics if the number of elements in the vector overflows.

pub fn clear(&mut self)[src]

Clears the vector, removing all values.

Note that this method has no effect on the allocated capacity of the vector.

pub fn push(&mut self, value: T)[src]

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

Removes the last element from a vector and returns it, or None if it is empty.

Trait Implementations

impl<'v, 'a, M: Meta, T, const N: usize> Deref for CalfVecMut<'v, 'a, M, T, N>[src]

type Target = [T]

The resulting type after dereferencing.

impl<'v, 'a, M: Meta, T, const N: usize> DerefMut for CalfVecMut<'v, 'a, M, T, N>[src]

impl<'v, 'a, M: Meta, T, const N: usize> Extend<T> for CalfVecMut<'v, 'a, M, T, N>[src]

Auto Trait Implementations

impl<'v, 'a, M, T, const N: usize> RefUnwindSafe for CalfVecMut<'v, 'a, M, T, N> where
    M: RefUnwindSafe,
    T: RefUnwindSafe

impl<'v, 'a, M, T, const N: usize> Send for CalfVecMut<'v, 'a, M, T, N> where
    M: Send,
    T: Sync

impl<'v, 'a, M, T, const N: usize> Sync for CalfVecMut<'v, 'a, M, T, N> where
    M: Sync,
    T: Sync

impl<'v, 'a, M, T, const N: usize> Unpin for CalfVecMut<'v, 'a, M, T, N> where
    'a: 'v, 

impl<'v, 'a, M, T, const N: usize> !UnwindSafe for CalfVecMut<'v, 'a, M, T, N>

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