[−][src]Struct calf_vec::generic::CalfVecMut
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]
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]
fn extend<I: IntoIterator<Item = T>>(&mut self, iterator: I)[src]
fn extend_one(&mut self, item: A)[src]
fn extend_reserve(&mut self, additional: usize)[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,
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,
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,
M: Sync,
T: Sync,
impl<'v, 'a, M, T, const N: usize> Unpin for CalfVecMut<'v, 'a, M, T, N> where
'a: 'v,
'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]
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, 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>,