Skip to main content

FromMapping

Trait FromMapping 

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

Source

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".

Implementors§