pub trait FromMapping: Sized {
// Required method
fn from_mapping(mapping: impl Mapping) -> Result<Self>;
}Expand description
Constructs the structure from a mapping such as std::collections::HashMap.
Required Methods§
fn from_mapping(mapping: impl Mapping) -> Result<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".