Struct idmap::table::DirectEntryTable[][src]

pub struct DirectEntryTable<K: IntegerId, V> { /* fields omitted */ }
Expand description

A entry table that stores in a flat array

This has very fast O(1) access but can waste memory if the entries are sparse

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type that iterates over this table’s pointers

Iterate over raw pointers in this table Read more

Create a new table

Create a new table, initialized to the specified capacity

The number of entries in the table

Get the entry corresponding to the specified key

Get a mutable reference to the entry corresponding to the specified key

Insert a value and associate it with the specified key, returning the previous value Read more

Insert a value into a vacant slot, returning a reference to the new value

Remove the value associated with the specified key. Read more

Retain the specified entries in the map, returning if any indexes changed

Clear the table

Reserve room for more entries

Give a value that will debug the table

Get the maximum id of the table

Clone the table

If this table is empty

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.