pub struct MapDecoder<Map, K, V>(/* private fields */);
Expand description
Decode a MessagePack map of K -> V
into Map
collecting iterator.
Trait Implementations§
Source§impl<'de, Map, K, V> DecodeBorrowed<'de> for MapDecoder<Map, K, V>
impl<'de, Map, K, V> DecodeBorrowed<'de> for MapDecoder<Map, K, V>
Source§fn decode_borrowed_with_format<R>(
format: Format,
reader: &mut R,
) -> Result<Self::Value, Error<R::Error>>where
R: IoRead<'de>,
fn decode_borrowed_with_format<R>(
format: Format,
reader: &mut R,
) -> Result<Self::Value, Error<R::Error>>where
R: IoRead<'de>,
Decode with a previously read
Format
.Source§fn decode_borrowed<R>(
reader: &mut R,
) -> Result<<Self as DecodeBorrowed<'de>>::Value, Error<R::Error>>where
R: IoRead<'de>,
fn decode_borrowed<R>(
reader: &mut R,
) -> Result<<Self as DecodeBorrowed<'de>>::Value, Error<R::Error>>where
R: IoRead<'de>,
Decode the next value.
Auto Trait Implementations§
impl<Map, K, V> Freeze for MapDecoder<Map, K, V>
impl<Map, K, V> RefUnwindSafe for MapDecoder<Map, K, V>
impl<Map, K, V> Send for MapDecoder<Map, K, V>
impl<Map, K, V> Sync for MapDecoder<Map, K, V>
impl<Map, K, V> Unpin for MapDecoder<Map, K, V>
impl<Map, K, V> UnwindSafe for MapDecoder<Map, K, V>
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<'de, T> Decode<'de> for Twhere
T: DecodeBorrowed<'de> + 'de,
impl<'de, T> Decode<'de> for Twhere
T: DecodeBorrowed<'de> + 'de,
Source§type Value<'a> = <T as DecodeBorrowed<'de>>::Value
where
'de: 'a,
T: 'a
type Value<'a> = <T as DecodeBorrowed<'de>>::Value where 'de: 'a, T: 'a
The decoded value (may borrow for
'a
).