pub struct KeyValue<K, V> {
pub key: K,
pub value: V,
}
Expand description
Key value pair.
Used as the type param in Args::as_iter
when parsing mappings.
If you’re implementing FromArgs
for your own mapping type then you should use this type too.
Fields§
§key: K
§value: V
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for KeyValue<K, V>
impl<K, V> RefUnwindSafe for KeyValue<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for KeyValue<K, V>
impl<K, V> Sync for KeyValue<K, V>
impl<K, V> Unpin for KeyValue<K, V>
impl<K, V> UnwindSafe for KeyValue<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more