KeyValue<K, V> structv0.1.0

Source
One entry of a map, as a value a caller can hold.
pub struct KeyValue<K, V> {
    pub key: K;
    pub value: V;
}

What a walk yields and what a consuming iteration hands back. Two fields rather than a pair, because entry.key says which is which and entry.0 does not.

Type parameters

NameDescription
Kthe key type
Vthe value type

Fields

NameTypeDescription
keyKThe key the entry was stored under.
valueVThe value stored under it.