pub trait ToValueOptional {
// Required method
fn to_value_optional(s: Option<&Self>) -> Value;
}Expand description
Trait to convert an Option to a Value for optional types.
Required Methods§
Sourcefn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an Option to a 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.