logo
pub struct ArchivedIndexMap<K, V> { /* private fields */ }
Expand description

An archived IndexMap.

Implementations

Returns whether a key is present in the hash map.

Returns the first key-value pair.

Gets the value associated with the given key.

Gets the index, key, and value associated with the given key.

Gets a key-value pair by index.

Gets the index of a key if it exists in the map.

Gets the key-value pair associated with the given key.

Gets the hasher for this index map.

Returns true if the map contains no elements.

Returns an iterator over the key-value pairs of the map in order

Returns an iterator over the keys of the map in order

Returns the last key-value pair.

Gets the number of items in the index map.

Returns an iterator over the values of the map in order.

Resolves an archived index map from a given length and parameters.

Safety
  • len must be the number of elements that were serialized
  • pos must be the position of out within the archive
  • resolver must be the result of serializing a hash map

Trait Implementations

The error that may result from checking the type.

Checks whether the given pointer points to a valid value within the given context. Read more

Formats the value using the given formatter. Read more

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

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Returns the argument unchanged.

Calls U::from(self).

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

Gets the layout of the type.

The type for metadata in pointers and references to Self.

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.