ValidatedMap

Trait ValidatedMap 

Source
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§

Required Methods§

Source

fn insert<'d, D: Deserializer<'d>>( &mut self, key: &str, value: D, ) -> Result<(), InsertionError>

Source

fn get<'a>( &'a self, key: &str, ) -> Result<<Self as ValidatedMapAssociatedTypes<'a>>::Accessor, GetError>

Source

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.

Implementors§