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]

[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.

[src]

Returns the length of the Aovec.

[src]

Get value at index idx

[src]

Get value at index idx, without checking bounds

[src]

Adds an element to the Aovec, returning its index.

Trait Implementations

impl<T> Sync for Aovec<T>
[src]

impl<T> Send for Aovec<T>
[src]

impl<T> Index<usize> for Aovec<T>
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.