pub enum VariantResult {
    Empty,
    BOOL(bool),
    I16(i16),
    U16(u16),
    Int(i32),
    Uint(u32),
    I64(i64),
    U64(u64),
    F32(f32),
    F64(f64),
    String(String),
    SafeArray(SafeArray),
}
Expand description

VariantResult is a tyoe that can be converted from VARIANT to automatically convert the VARIANT value to a rust type that is easier to work with. The VARIANT can be dropped after the conversion as the data is copied into the VariantResult.

Variants

Empty

BOOL(bool)

I16(i16)

U16(u16)

Int(i32)

Uint(u32)

I64(i64)

U64(u64)

F32(f32)

F64(f64)

String(String)

SafeArray(SafeArray)

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.