pub trait WireMap<K, V> {
// Required methods
fn entry_count(&self) -> usize;
fn try_visit<E, F: FnMut(&K, &V) -> Result<(), E>>(
&self,
visit: F,
) -> Result<(), E>;
}Expand description
What the writer takes of a map: its size and its entries in the order they go on the wire.
Required Methods§
Sourcefn entry_count(&self) -> usize
fn entry_count(&self) -> usize
The number of entries.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".