Struct mgf::Pool [] [src]

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

Growable array type that allows items to be removed and inserted without changing the indices of other entries.

Methods

impl<T> Pool<T>
[src]

[src]

Create an empty Pool.

[src]

Create an empty Pool large enough to fix cap items.

[src]

Determines if the Pool is empty.

[src]

[src]

Push a new item to the Pool. Attempts to use spots left empty from removed items before performing a heap allocation.

[src]

Marks an index as empty and adds it to the free list, allowing the spot to be reclaimed later.

[src]

[src]

Trait Implementations

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

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<T> IndexMut<usize> for Pool<T>
[src]

[src]

Performs the mutable indexing (container[index]) operation.

impl<T> Clone for Pool<T> where
    T: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a, T> IntoIterator for &'a Pool<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<'a, T> IntoIterator for &'a mut Pool<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more