pub trait IVec<T: Default + Copy> {
Show 13 methods
// Required methods
fn push(&mut self, t: T) -> (&mut T, usize);
fn pop(&mut self);
fn top(&self) -> Option<&T>;
fn top_mut(&mut self) -> Option<&mut T>;
fn capacity(&self) -> usize;
fn len(&self) -> usize;
fn clear(&mut self);
fn as_slice(&self) -> &[T];
fn as_slice_mut(&mut self) -> &mut [T];
fn get(&self, index: usize) -> &T;
fn get_mut(&mut self, index: usize) -> &mut T;
fn reverse(&mut self);
// Provided method
fn append(&mut self, other: &[T]) { ... }
}
The returned type after indexing.
Performs the indexing (
container[index]
) operation.
Read more
Performs the mutable indexing (
container[index]
) operation.
Read more