Struct aovec::Aovec
[−]
[src]
pub struct Aovec<T> { /* fields omitted */ }
A concurrent vector, only supporting push and indexed access
Methods
impl<T> Aovec<T>
[src]
fn new(base: usize) -> Self
[src]
Creates a new Aovec
The base
of the vector is how many elements the first allocation
fits. When this value is exceeded, another vector is allocated
with twice the size. Up to 16 allocations are supported, after which
the push will panic.
A base of 16 gives a maximum number of 104856 elements.
fn len(&self) -> usize
[src]
Returns the length of the Aovec
.
fn push(&self, t: T) -> usize
[src]
Adds an element to the Aovec
, returning its index.