Struct proc_macro_kwargs::parse::KeyValuePair [−][src]
pub struct KeyValuePair<K: MacroDictKey, V: MacroArg> { pub key: K, pub value: V, }
Expand description
A pair of values in a NestedDict
Fields
key: K
The key
value: V
The value
Trait Implementations
Parse the argument to the macro
impl<K: PartialEq + MacroDictKey, V: PartialEq + MacroArg> PartialEq<KeyValuePair<K, V>> for KeyValuePair<K, V>
impl<K: PartialEq + MacroDictKey, V: PartialEq + MacroArg> PartialEq<KeyValuePair<K, V>> for KeyValuePair<K, V>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<K, V> RefUnwindSafe for KeyValuePair<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for KeyValuePair<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for KeyValuePair<K, V> where
K: Sync,
V: Sync,
impl<K, V> Unpin for KeyValuePair<K, V> where
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for KeyValuePair<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.