Struct gitconfig::map::Map [] [src]

pub struct Map<K, V> { /* fields omitted */ }

Represents a git config key/value type.

Methods

impl Map<String, Value>
[src]

[src]

Makes a new empty Map.

[src]

Returns a reference to the value corresponding to the key.

The key may be any borrowed form of the map's key type, but the ordering on the borrowed form must match the ordering on the key type.

[src]

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.

[src]

Gets the given key's corresponding entry in the map for in-place manipulation.

Trait Implementations

impl<K: PartialEq, V: PartialEq> PartialEq for Map<K, V>
[src]

[src]

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

[src]

This method tests for !=.

impl<K: Clone, V: Clone> Clone for Map<K, V>
[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 Map<K, V>
[src]

[src]

Formats the value using the given formatter.

impl<K, V> IntoIterator for Map<K, V>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more