pub trait MapAccess {
// Required methods
fn next_value<V: Deserialize>(&mut self) -> Result<V, AnyError>;
fn next_key<K: Deserialize>(&mut self) -> Result<Option<K>, AnyError>;
}Expand description
Allows the access to key-value pairs
Required Methods§
fn next_value<V: Deserialize>(&mut self) -> Result<V, AnyError>
fn next_key<K: Deserialize>(&mut self) -> Result<Option<K>, AnyError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.