pub trait UnsafeToValue: Sized {
type Guard: 'static;
// Required method
unsafe fn unsafe_to_value(self) -> Result<(Value, Self::Guard), VmError>;
}Expand description
Trait for converting types into values.
Required Associated Types§
Required Methods§
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.