pub trait ParsableValue: Copy {
// Required method
fn parse_value(value: &str) -> Option<Self>;
}
Expand description
Trait implemented on types which can be returned by DictRef::parse
.
Required Methods§
Sourcefn parse_value(value: &str) -> Option<Self>
fn parse_value(value: &str) -> Option<Self>
Try parsing value
to convert it to the requested type.
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.