Struct veclist::VecList [] [src]

pub struct VecList<T> { /* fields omitted */ }

Vec with slots which allow to pop values from index which will be reused by later push.

Methods

impl<T> VecList<T>
[src]

[src]

Create new empty VecList

[src]

Create new VecList with specified capacity

[src]

Push new value into VecList returning index where value is placed.

[src]

Pop value from specified index. Returns None if index is unused.

[src]

Returns a reference to the value of given index or None if there is no value yet.

[src]

Returns a mutable reference to the value of given index or None if there is no value yet.

[src]

Get upper bound (exclusive) of occupied incides

Trait Implementations

impl<T: Clone> Clone for VecList<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for VecList<T>
[src]

[src]

Formats the value using the given formatter.

impl<T> Default for VecList<T>
[src]

[src]

Returns the "default value" for a type. Read more