pub trait ValidatedMap: for<'a> ValidatedMapAssociatedTypes<'a> {
type Keys: IntoIterator<Item = String>;
// Required methods
fn insert<'d, D: Deserializer<'d>>(
&mut self,
key: &str,
value: D,
) -> Result<(), InsertionError>
where InsertionError: From<D::Error>;
fn get<'a>(
&'a self,
key: &str,
) -> Result<<Self as ValidatedMapAssociatedTypes<'a>>::Accessor, GetError>;
fn keys(&self) -> Self::Keys;
}Required Associated Types§
type Keys: IntoIterator<Item = String>
Required Methods§
fn insert<'d, D: Deserializer<'d>>( &mut self, key: &str, value: D, ) -> Result<(), InsertionError>
fn get<'a>( &'a self, key: &str, ) -> Result<<Self as ValidatedMapAssociatedTypes<'a>>::Accessor, GetError>
fn keys(&self) -> Self::Keys
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.