KeyValue<K, V> structv0.1.0
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
| Name | Description |
|---|---|
K | the key type |
V | the value type |
Fields
| Name | Type | Description |
|---|---|---|
key | K | The key the entry was stored under. |
value | V | The value stored under it. |