pub struct KeyValuePair<K: MacroDictKey, V: MacroArg> {
pub key: K,
pub value: V,
}Expand description
A pair of values in a NestedDict
Fields§
§key: KThe key
value: VThe value
Trait Implementations§
Source§impl<K: Clone + MacroDictKey, V: Clone + MacroArg> Clone for KeyValuePair<K, V>
impl<K: Clone + MacroDictKey, V: Clone + MacroArg> Clone for KeyValuePair<K, V>
Source§fn clone(&self) -> KeyValuePair<K, V>
fn clone(&self) -> KeyValuePair<K, V>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: Debug + MacroDictKey, V: Debug + MacroArg> Debug for KeyValuePair<K, V>
impl<K: Debug + MacroDictKey, V: Debug + MacroArg> Debug for KeyValuePair<K, V>
Source§impl<K, V> MacroArg for KeyValuePair<K, V>where
K: MacroDictKey,
V: MacroArg,
impl<K, V> MacroArg for KeyValuePair<K, V>where
K: MacroDictKey,
V: MacroArg,
Source§fn parse_macro_arg(stream: ParseStream<'_>) -> Result<Self>
fn parse_macro_arg(stream: ParseStream<'_>) -> Result<Self>
Parse the argument to the macro
Source§impl<K: MacroDictKey, V: MacroArg> Parse for KeyValuePair<K, V>
impl<K: MacroDictKey, V: MacroArg> Parse for KeyValuePair<K, V>
fn parse(stream: ParseStream<'_>) -> Result<Self>
Source§impl<K: PartialEq + MacroDictKey, V: PartialEq + MacroArg> PartialEq for KeyValuePair<K, V>
impl<K: PartialEq + MacroDictKey, V: PartialEq + MacroArg> PartialEq for KeyValuePair<K, V>
impl<K: Eq + MacroDictKey, V: Eq + MacroArg> Eq for KeyValuePair<K, V>
impl<K: MacroDictKey, V: MacroArg> StructuralPartialEq for KeyValuePair<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for KeyValuePair<K, V>
impl<K, V> RefUnwindSafe for KeyValuePair<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for KeyValuePair<K, V>
impl<K, V> Sync for KeyValuePair<K, V>
impl<K, V> Unpin for KeyValuePair<K, V>
impl<K, V> UnwindSafe for KeyValuePair<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.