pub enum VariantArg {
Show 13 variants Bool(i16), Bstr(Vec<u16>), LongLong(i64), Long(i32), Short(i16), Float(f32), Double(f64), UShort(u16), ULong(u32), ULongLong(u64), Int(i32), UInt(u32), SafeArray(SafeArray),
}
Expand description

VariantArg is a type to simplify the conversion of rust types into variants that are used by windows APIs. Make sure to use the free_variant(s) functions if you convert the VariantArg to VARIANT.

Variants

Bool(i16)

Bstr(Vec<u16>)

LongLong(i64)

Long(i32)

Short(i16)

Float(f32)

Double(f64)

UShort(u16)

ULong(u32)

ULongLong(u64)

Int(i32)

UInt(u32)

SafeArray(SafeArray)

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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.

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.