Trait oaidl::VariantExt

source ·
pub trait VariantExt<B>: Sized {
    const VARTYPE: u32;

    fn from_variant(var: Ptr<VARIANT>) -> Result<Self, FromVariantError>;
    fn into_variant(value: Self) -> Result<Ptr<VARIANT>, IntoVariantError>;
}
Expand description

Trait implemented to convert the type into a VARIANT. Do not implement this yourself without care.

Required Associated Constants§

VARTYPE constant value for the type

Required Methods§

Call this associated function on a Ptr<VARIANT> to obtain a value T

Convert a value of type T into a Ptr<VARIANT>

Implementors§

Blanket implementation where TryConvert implementations exist between OutTy<==>InTy and a private trait is implemented on OutTy.