[−][src]Trait stack::Vector
Associated Types
type Item
Required methods
fn with_capacity(cap: usize) -> Self where
Self: Sized,
Self: Sized,
fn capacity(&self) -> usize
fn reserve(&mut self, additional: usize)
fn reserve_exact(&mut self, additional: usize)
fn shrink_to_fit(&mut self)
fn into_boxed_slice(self) -> Box<[Self::Item]>
unsafe fn set_len(&mut self, len: usize)
fn len(&self) -> usize
fn as_ptr(&self) -> *const Self::Item
fn as_mut_ptr(&mut self) -> *mut Self::Item
Provided methods
fn new() -> Self where
Self: Sized,
Self: Sized,
fn truncate(&mut self, len: usize)
fn swap_remove(&mut self, index: usize) -> Self::Item
fn insert(&mut self, index: usize, element: Self::Item)
fn remove(&mut self, index: usize) -> Self::Item
fn retain<F: FnMut(&Self::Item) -> bool>(&mut self, f: F) where
Self: Sized,
Self: Sized,
fn push(&mut self, value: Self::Item)
fn pop(&mut self) -> Option<Self::Item>
fn clear(&mut self)
fn is_empty(&self) -> bool
fn push_cap(&mut self, value: Self::Item) -> Result<(), Self::Item>
fn insert_cap(
&mut self,
index: usize,
element: Self::Item
) -> Option<Self::Item>
&mut self,
index: usize,
element: Self::Item
) -> Option<Self::Item>
fn as_slice(&self) -> &[Self::Item]
fn as_mut_slice(&mut self) -> &mut [Self::Item]
unsafe fn uninitialized_resize(&mut self, new_len: usize)
Trait Implementations
impl<'a, T: Array + 'a, S: Vector<Item = T::Item> + 'a> AsRef<dyn Vector<Item = <T as Array>::Item> + 'a> for SmallVec<T, S> where
T::Item: 'a,
T::Index: 'a,
[src]
T::Item: 'a,
T::Index: 'a,