pub trait FromEcfValue: Sized {
const TYPE_NAME_SINGULAR: &'static str;
// Required method
fn from_ecf_value(input: &Value) -> Option<&Self>;
}
Expand description
Converts an ecf::Value into a generic type
Required Associated Constants§
Sourceconst TYPE_NAME_SINGULAR: &'static str
const TYPE_NAME_SINGULAR: &'static str
Name of the generic type, used for error messages, needs to be singular and uppercase (example: “a String”)
Required Methods§
Sourcefn from_ecf_value(input: &Value) -> Option<&Self>
fn from_ecf_value(input: &Value) -> Option<&Self>
Main functionality
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.