Skip to main content

ExpressionVariantValue

Trait ExpressionVariantValue 

Source
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§

Source

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§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ExpressionVariantValue for bool

Source§

impl ExpressionVariantValue for f32

Source§

impl ExpressionVariantValue for f64

Implementors§