pub struct UnorderedSet<T> { /* private fields */ }
Expand description
An iterable implementation of a set that stores its content directly on the trie.
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.
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,