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

An archived HashMap.

Implementations

Gets the number of items in the hash map.

Gets the hasher for this hashmap. The hasher for all archived hashmaps is the same for reproducibility.

Finds the key-value entry for a key.

Finds the mutable key-value entry for a key.

Returns whether a key is present in the hash map.

Gets the value associated with the given key.

Gets the mutable value associated with the given key.

Returns true if the map contains no elements.

Gets an iterator over the key-value entries in the hash map.

Gets an iterator over the mutable key-value entries in the hash map.

Gets an iterator over the keys in the hash map.

Gets an iterator over the values in the hash map.

Gets an iterator over the mutable values in the hash map.

Resolves an archived hash 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

Deserializes using the given deserializer

Deserializes using the given deserializer

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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.