Struct ssb_legacy_msg_data::value::RidiculousStringMap[][src]

pub struct RidiculousStringMap<V> { /* fields omitted */ }
Expand description

A map with string keys that sorts strings according to object entry order, using insertion order for non-int keys.

Implementations

Create a new map with capacity for n key-value pairs. (Does not allocate if n is zero.)

This only preallocates capacity for non-numeric strings.

Check if the map is empty.

Returns the number of elements in the map.

Inserts a key-value pair into the map.

If the map did not have this key present, None is returned.

If the map did have this key present, the value is updated, and the old value is returned. The key is not updated, though; this matters for types that can be == without being identical.

Deletes a key-value pair from the map.

Gets an iterator over the entries of the map. It first yields all entries with numeric keys in ascending order, and then the remaining entries in the same order in which they were inserted.

Returns a reference to the value corresponding to the key.

Returns a reference to the value corresponding to the key.

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

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

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.