logo
#[repr(transparent)]
pub struct ArchivedHashSet<K>(_);
Expand description

An archived HashSet. This is a wrapper around a hash map with the same key and a value of ().

Implementations

Gets the number of items in the hash set.

Gets the key corresponding to the given key in the hash set.

Returns whether the given key is in the hash set.

Gets the hasher for the underlying hash map.

Returns whether there are no items in the hash set.

Gets an iterator over the keys of the underlying hash map.

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

Serializes an iterator of keys as a hash set.

Safety

The keys returned by the iterator must be unique.

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

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.