Trait FromMap

Source
pub trait FromMap: Default {
    // Required methods
    fn from_stringmap(hashmap: StringMap) -> Self;
    fn from_genericmap(hashmap: GenericMap) -> Self;
}

Required Methods§

Source

fn from_stringmap(hashmap: StringMap) -> Self

Converts a GenericMap back into a structure. Constraints: assumes that value types conform to the original types of the struct.

Source

fn from_genericmap(hashmap: GenericMap) -> Self

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§