pub trait ExpressionVariantValue:
Copy
+ Default
+ 'static {
const FFI_VARIANT_TYPE: Option<VariantType>;
// Required methods
fn try_from_variant(variant: &ExpressionVariant) -> Option<Self>;
fn into_variant(self) -> ExpressionVariant;
}Expand description
A value type an ExpressionVariant can be created from and cast to.
Required Associated Constants§
Sourceconst FFI_VARIANT_TYPE: Option<VariantType>
const FFI_VARIANT_TYPE: Option<VariantType>
The variant type a foreign function parameter of this type is matched
against, or None when the type cannot be a foreign function parameter.
Required Methods§
Sourcefn try_from_variant(variant: &ExpressionVariant) -> Option<Self>
fn try_from_variant(variant: &ExpressionVariant) -> Option<Self>
Sourcefn into_variant(self) -> ExpressionVariant
fn into_variant(self) -> ExpressionVariant
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".