pub trait FromValueOptional<'a>: StaticType + Sized {
// Required method
unsafe fn from_value_optional(: &'a Value) -> Option<Self>;
}
Expand description
Extracts a value.
Types that don’t support a None
value always return Some
.
Required Methods§
unsafe fn from_value_optional(: &'a Value) -> Option<Self>
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.