[][src]Enum win_variant::VariantResult

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),
}

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

impl Debug for VariantResult[src]

impl TryFrom<VARIANT> for VariantResult[src]

type Error = VariantResultError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.