pub trait VariantTypeExt<'a, T> {
// Required methods
fn variant_into(&'a self) -> Result<T>;
fn variant_from(value: T) -> VARIANT;
}
Expand description
Functions to convert to and from a type that can be stored in a VARIANT
.
Required Methods§
Sourcefn variant_into(&'a self) -> Result<T>
fn variant_into(&'a self) -> Result<T>
Convert from a VARIANT
into a type, T.
Sourcefn variant_from(value: T) -> VARIANT
fn variant_from(value: T) -> VARIANT
Convert from a type T into a VARIANT
.
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.