pub trait AsMapConverter {
type Key;
type Value;
// Required methods
fn len(&self) -> usize;
fn iter(&self) -> impl Iterator<Item = (&Self::Key, &Self::Value)>;
fn from(
data: impl Iterator<Item = Result<(Self::Key, Self::Value)>>,
) -> Result<Self>
where Self: Sized;
}Required Associated Types§
Required Methods§
fn len(&self) -> usize
fn iter(&self) -> impl Iterator<Item = (&Self::Key, &Self::Value)>
fn from(
data: impl Iterator<Item = Result<(Self::Key, Self::Value)>>,
) -> Result<Self>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".