Struct proc_macro_kwargs::parse::KeyValuePair
source · 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§
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 copy 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>
source§fn eq(&self, other: &KeyValuePair<K, V>) -> bool
fn eq(&self, other: &KeyValuePair<K, V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<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.