Trait binpool::Array [] [src]

pub trait Array {
    type Item;
    fn len(&self) -> usize;
    fn get(&self, ind: usize) -> &Self::Item;
    fn set(&mut self, ind: usize, val: Self::Item);
    fn push(&mut self, val: Self::Item);
}

Implemented by array types.

Associated Types

The type of item.

Required Methods

Returns the number of items.

Get value of item by index.

Set value of item at index.

Push new item at the end of array.

Implementors