Struct spacetimedb_sats::bsatn::de::MapAccess
source · pub struct MapAccess<'a, R, K, V> { /* private fields */ }
Expand description
Deserializer for map elements.
Trait Implementations§
source§impl<'de, 'a, R: BufReader<'de>, K: DeserializeSeed<'de> + Clone, V: DeserializeSeed<'de> + Clone> MapAccess<'de> for MapAccess<'a, R, K, V>
impl<'de, 'a, R: BufReader<'de>, K: DeserializeSeed<'de> + Clone, V: DeserializeSeed<'de> + Clone> MapAccess<'de> for MapAccess<'a, R, K, V>
§type Key = <K as DeserializeSeed<'de>>::Output
type Key = <K as DeserializeSeed<'de>>::Output
The key type of the map.
§type Value = <V as DeserializeSeed<'de>>::Output
type Value = <V as DeserializeSeed<'de>>::Output
The value type of the map.
§type Error = DecodeError
type Error = DecodeError
The error type that can be returned if some error occurs during deserialization.
Auto Trait Implementations§
impl<'a, R, K, V> RefUnwindSafe for MapAccess<'a, R, K, V>
impl<'a, R, K, V> Send for MapAccess<'a, R, K, V>
impl<'a, R, K, V> Sync for MapAccess<'a, R, K, V>
impl<'a, R, K, V> Unpin for MapAccess<'a, R, K, V>
impl<'a, R, K, V> !UnwindSafe for MapAccess<'a, R, K, V>
Blanket Implementations§
source§impl<'de, A> ArrayAccess<'de> for Awhere
A: MapAccess<'de>,
impl<'de, A> ArrayAccess<'de> for Awhere
A: MapAccess<'de>,
§type Element = (<A as MapAccess<'de>>::Key, <A as MapAccess<'de>>::Value)
type Element = (<A as MapAccess<'de>>::Key, <A as MapAccess<'de>>::Value)
The element / base type of the array.
§type Error = <A as MapAccess<'de>>::Error
type Error = <A as MapAccess<'de>>::Error
The error type that can be returned if some error occurs during deserialization.
source§fn next_element(
&mut self
) -> Result<Option<<A as ArrayAccess<'de>>::Element>, <A as ArrayAccess<'de>>::Error>
fn next_element( &mut self ) -> Result<Option<<A as ArrayAccess<'de>>::Element>, <A as ArrayAccess<'de>>::Error>
This returns
Ok(Some(value))
for the next element in the array,
or Ok(None)
if there are no more remaining elements.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