pub trait FromKeyValue: Sized {
// Required method
fn from_key_value(text: &str) -> Option<Self>;
}Expand description
Types that can be parsed from a KeyValue string. Enums accept the member
name or its numeric value.
Required Methods§
Sourcefn from_key_value(text: &str) -> Option<Self>
fn from_key_value(text: &str) -> Option<Self>
Parses text, or None if it isn’t a valid value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".