pub trait MapVisitor {
type Error: Error;
fn visit_key<K>(&mut self) -> Result<Option<K>, Self::Error> where K: Deserialize;
fn visit_value<V>(&mut self) -> Result<V, Self::Error> where V: Deserialize;
fn end(&mut self) -> Result<(), Self::Error>;
fn visit<K, V>(&mut self) -> Result<Option<(K, V)>, Self::Error> where K: Deserialize, V: Deserialize { ... }
fn size_hint(&self) -> (usize, Option<usize>) { ... }
fn missing_field<V>(&mut self, field: &'static str) -> Result<V, Self::Error> where V: Deserialize { ... }
}
Associated Types
Required Methods
Provided Methods
Implementors
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)