pub trait FromConfigValue: Sized {
// Required method
fn from_config_value(v: &ConfigValue) -> Option<Self>;
}Expand description
Fallible conversion from a ConfigValue reference to a concrete type.
Required Methods§
Sourcefn from_config_value(v: &ConfigValue) -> Option<Self>
fn from_config_value(v: &ConfigValue) -> Option<Self>
Attempt the conversion. Returns None on type mismatch.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".