Struct chunky::Vector [−][src]
A vector which stores items of a known type in an Arena
Methods
impl<Item: Clone, H: Handler> Vector<Item, H>[src]
impl<Item: Clone, H: Handler> Vector<Item, H>pub fn new(ident: Ident, chunk_size: usize) -> Self[src]
pub fn new(ident: Ident, chunk_size: usize) -> SelfCreate a new chunky vector
pub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeGet the number of elements in the vector
pub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolIs the chunky vector empty?
pub fn at(&self, index: usize) -> Option<&Item>[src]
pub fn at(&self, index: usize) -> Option<&Item>Get a reference to the item at index
pub fn at_mut(&mut self, index: usize) -> Option<&mut Item>[src]
pub fn at_mut(&mut self, index: usize) -> Option<&mut Item>Get a mutable reference to the item at index
pub fn push(&mut self, item: Item)[src]
pub fn push(&mut self, item: Item)Push an item onto the vector
pub fn pop(&mut self) -> Option<Item>[src]
pub fn pop(&mut self) -> Option<Item>Remove and return the last item, if the vector wasn't empty