pub struct MapEntries<K, V>(pub Vec<(K, V)>);Available on crate feature
alloc only.Expand description
A CBOR map represented as ordered key/value entries.
Tuple Fields§
§0: Vec<(K, V)>Implementations§
Trait Implementations§
Source§impl<'de, V: CborDecode<'de>> CborDecode<'de> for MapEntries<&'de str, V>
impl<'de, V: CborDecode<'de>> CborDecode<'de> for MapEntries<&'de str, V>
Source§impl<'de, V: CborDecode<'de>> CborDecode<'de> for MapEntries<String, V>
impl<'de, V: CborDecode<'de>> CborDecode<'de> for MapEntries<String, V>
Source§impl<K, V> CborEncode for MapEntries<K, V>
impl<K, V> CborEncode for MapEntries<K, V>
Source§impl<K: Clone, V: Clone> Clone for MapEntries<K, V>
impl<K: Clone, V: Clone> Clone for MapEntries<K, V>
Source§fn clone(&self) -> MapEntries<K, V>
fn clone(&self) -> MapEntries<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 moreimpl<K, V> CborArrayElem for MapEntries<K, V>
impl<K: Eq, V: Eq> Eq for MapEntries<K, V>
impl<K, V> StructuralPartialEq for MapEntries<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for MapEntries<K, V>
impl<K, V> RefUnwindSafe for MapEntries<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for MapEntries<K, V>
impl<K, V> Sync for MapEntries<K, V>
impl<K, V> Unpin for MapEntries<K, V>
impl<K, V> UnsafeUnpin for MapEntries<K, V>
impl<K, V> UnwindSafe for MapEntries<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