pub struct Map<TKey, TValue>(_);
Expand description

A small hashtable-like map with byte sized key indecies.

Implementations

Get an Entry for the key that lets you get or insert the value

Remove all empty pages from this instance.

The number of entries currently in this map

This is an iterating count over all slots in all current pages, if possible store it in a temporary instead of re-calling it.

Is this map empty

The number of pages currently in this map

Consume the instance, returning all pages.

An iterator over all pages

A mutable iterator over all pages

An iterator over all elements in the map

A mutable iterator over all elements in the map

Create a new empty Map

Create a new empty Map with a specific number of pages pre-allocated

Get a mutable reference of the value corresponding to this key if it is in the map.

Search the map for entry corresponding to this key

Get a reference of the value corresponding to this key if it is in the map.

Remove the entry corresponding to this key in the map, returning the value if it was present

Insert a new key-value entry into this map, returning the pervious value if it was present

Consume this Map by swapping its keys and values around.

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

Returns the “default value” for a type. Read more

Extends a collection with the contents of an iterator. Read more

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

Extends a collection with exactly one element.

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

Reserves capacity in a collection for the given number of additional elements. Read more

Creates a value from an iterator. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Consume this map into an iterator over all currently inserted entries

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Create the index key for this instance. This is similar in use to Hash::hash().

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.