pub struct UnorderedSet<T> { /* private fields */ }
Expand description

An iterable implementation of a set that stores its content directly on the trie.

Implementations

Returns the number of elements in the set, also referred to as its size.

Returns true if the set contains no elements.

Create new map with zero elements. Use id as a unique identifier.

Adds a value to the set. If the set did not have this value present, true is returned. If the set did have this value present, false is returned.

Removes a value from the set. Returns whether the value was present in the set.

Returns true if the set contains an element.

Removes a value from the set. Returns whether the value was present in the set.

Adds a value to the set. If the set did not have this value present, true is returned. If the set did have this value present, false is returned.

Clears the map, removing all elements.

Copies elements into an std::vec::Vec.

Iterate over deserialized elements.

Returns a view of elements as a vector. It’s sometimes useful to have random access to the elements.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Formats the value using the given formatter. 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.

Should always be 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.