Struct crayon::utils::handle_pool::HandlePool [] [src]

pub struct HandlePool { /* fields omitted */ }

HandlePool manages the manipulations of a Handle collection, which are created with a continuous index field. It also have the ability to find out the current status of a specified Handle.

Methods

impl HandlePool
[src]

[src]

Constructs a new, empty HandlePool.

[src]

Constructs a new HandlePool with the specified capacity.

[src]

Creates a unused Handle.

[src]

Returns true if this Handle was created by HandlePool, and has not been freed yet.

[src]

Recycles the Handle index, and mark its version as dead.

[src]

Recycles the Handle index, and mark its version as dead.

[src]

Returns the total number of alive handle in this HandlePool.

[src]

Returns an iterator over the HandlePool.