Struct style::custom_properties::OrderedMap [] [src]

pub struct OrderedMap<K, V> where
    K: PrecomputedHash + Hash + Eq + Clone
{ /* fields omitted */ }

A map that preserves order for the keys, and that is easily indexable.

Methods

impl<K, V> OrderedMap<K, V> where
    K: Eq + PrecomputedHash + Hash + Clone
[src]

[src]

Creates a new ordered map.

[src]

Insert a new key-value pair.

[src]

Get a value given its key.

[src]

Get whether there's a value on the map for key.

[src]

Get the key located at the given index.

Important traits for OrderedMapIterator<'a, K, V>
[src]

Get an ordered map iterator.

[src]

Get the count of items in the map.

[src]

Returns whether this map is empty.

Trait Implementations

impl<K: Clone, V: Clone> Clone for OrderedMap<K, V> where
    K: PrecomputedHash + Hash + Eq + Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<K: Debug, V: Debug> Debug for OrderedMap<K, V> where
    K: PrecomputedHash + Hash + Eq + Clone
[src]

[src]

Formats the value using the given formatter. Read more

impl<K: Eq, V: Eq> Eq for OrderedMap<K, V> where
    K: PrecomputedHash + Hash + Eq + Clone
[src]

impl<K: PartialEq, V: PartialEq> PartialEq for OrderedMap<K, V> where
    K: PrecomputedHash + Hash + Eq + Clone
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.