Struct ketos::name::NameMapSlice [] [src]

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

Maps names to values in a sorted boxed slice.

Values may overwrite existing values, but new names cannot be inserted.

Methods

impl<T> NameMapSlice<T>
[src]

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

Returns the index within the internal Vec of the given key.

Returns the value corresponding to the given name.

Returns a slice of the contained names and values.

Overwrites the value for the given name.

Returns None if the name does not exist in the mapping. When None is returned, no value will have been stored in the mapping.

Returns whether the given map is empty.

Returns an iterator over names and values.

Elevates the map into NameMap, which may receive new key-value pairs.

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

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

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

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

impl<T: PartialEq> PartialEq for NameMapSlice<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 NameMapSlice<T>
[src]

Creates a value from an iterator. Read more

impl<'a, T> IntoIterator for &'a NameMapSlice<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