pub trait FromStringValue: Sized + Any {
// Required method
fn from_str_value(
context: &mut ConfigContext<'_>,
value: &str,
) -> Result<Self, ConfigError>;
}
Expand description
Get from string.
Required Methods§
Sourcefn from_str_value(
context: &mut ConfigContext<'_>,
value: &str,
) -> Result<Self, ConfigError>
fn from_str_value( context: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Convert from string value.
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.