Struct ketos::name::NameMap [] [src]

pub struct NameMap<T> { /* fields omitted */ }

Maps names to values in a sorted Vec

Methods

impl<T> NameMap<T>
[src]

Returns a new NameMap.

Lowers the map into a NameMapSlice, which may not receive new key-value pairs, but can overwrite existing values.

Removes all values from the map.

Returns whether the map contains a value for the given name.

Returns the value corresponding to the given name.

Returns a slice of the contained names and values.

Returns whether the given map is empty.

Returns an iterator over names and values.

Insert a name-value pair into the map. If a value was already present for the name, it is returned.

Returns the number of name-value pairs contained in the map.

Trait Implementations

impl<T: Clone> Clone for NameMap<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for NameMap<T>
[src]

Formats the value using the given formatter.

impl<T: Default> Default for NameMap<T>
[src]

Returns the "default value" for a type. Read more

impl<T: Eq> Eq for NameMap<T>
[src]

impl<T: PartialEq> PartialEq for NameMap<T>
[src]

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

This method tests for !=.

impl<T> FromIterator<(Name, T)> for NameMap<T>
[src]

Creates a value from an iterator. Read more

impl<'a, T> IntoIterator for &'a NameMap<T>
[src]

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