pub trait ValueTryIntoObject {
type Object;
// Required method
fn try_into_object(self) -> Result<Self::Object, TryTypeError>;
}Expand description
A trait that specifies how to turn the Value into it’s sub types with error handling
Required Associated Types§
Required Methods§
Sourcefn try_into_object(self) -> Result<Self::Object, TryTypeError>
fn try_into_object(self) -> Result<Self::Object, TryTypeError>
Tries to turn the value into it’s object representation
§Errors
if the requested type doesn’t match the actual type
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".