Trait generational_cache::vector::Vector
source · pub trait Vector<T>: DerefMut<Target = [T]> {
type Error: Debug;
// Required methods
fn reserve(&mut self, additional: usize) -> Result<(), Self::Error>;
fn capacity(&self) -> usize;
fn push(&mut self, item: T) -> Result<(), Self::Error>;
fn clear(&mut self);
}
Expand description
Represents an abstract vector over a type accessible as mutable slice.
Required Associated Types§
Required Methods§
sourcefn reserve(&mut self, additional: usize) -> Result<(), Self::Error>
fn reserve(&mut self, additional: usize) -> Result<(), Self::Error>
Reserves memory for the given number of additional items in this vector.