logo
pub struct OrderedSet<V, S = RandomState>(_)
where
    V: Hash + Eq
;
Expand description

A newtype wrapping indexmap::IndexSet

Implementations

Return the number of key-value pairs in the map.

Computes in O(1) time.

Returns true if the map contains no elements.

Computes in O(1) time.

Insert a value pair in the set.

If an equivalent value already exists in the set: ???

If no equivalent value existed in the set: the new value is inserted, last in order, and false

Computes in O(1) time (amortized average).

Delete the value from the set and return true if successful

Return false if value is not in map.

Computes in O(n) time (average).

Checks if a given value is present in the set

Return true if value is present in set, false otherwise.

Computes in O(n) time (average).

Get a key-value pair by index Valid indices are 0 <= index < self.len() Computes in O(1) time.

Return an iterator over the values of the set, in their order

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
Marks all contained Gcs.
Increments the root-count of all contained Gcs.
Decrements the root-count of all contained Gcs.
Runs Finalize::finalize() on this object and all contained subobjects 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

Returns the argument unchanged.

Calls U::from(self).

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

Convert the Rust type which implements NativeObject to a &dyn Any.
Convert the Rust type which implements NativeObject to a &mut dyn Any.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.