pub struct GenIndex<T> { /* private fields */ }
Expand description

A simple generational index implementation. The data is stored in a read-only manner, Use RefCell to get mutability. Not secure, no index validity check.

Implementations

Create an empty GenIndex

Clear the GenIndex

Check if a key is in the collection

Return the registered item

Return a mut reference.

Number of item in the list.

Add a new item to the list.

Remove an item from the list.

Replace the item of the index with a new one.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.