pub enum IntoVariantError {
    AllocBStrFailed(Box<BStringError>),
    SafeArrConvFailed(Box<SafeArrayError>),
}
Expand description

Encapsulates errors that can occur during conversion into VARIANT

Variants§

§

AllocBStrFailed(Box<BStringError>)

Encapsulates a BStringError

§

SafeArrConvFailed(Box<SafeArrayError>)

Encapsulates a SafeArrayError

Trait Implementations§

source§

impl Debug for IntoVariantError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for IntoVariantError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Fail for IntoVariantError

source§

fn name(&self) -> Option<&str>

Returns the “name” of the error. Read more
source§

fn cause(&self) -> Option<&dyn Fail>

Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
source§

fn backtrace(&self) -> Option<&Backtrace>

Returns a reference to the Backtrace carried by this failure, if it carries one. Read more
source§

fn context<D>(self, context: D) -> Context<D>where D: Display + Send + Sync + 'static, Self: Sized,

Provides context for this failure. Read more
source§

fn compat(self) -> Compat<Self>where Self: Sized,

Wraps this failure in a compatibility wrapper that implements std::error::Error. Read more
source§

impl From<BStringError> for IntoVariantError

source§

fn from(bse: BStringError) -> IntoVariantError

Boxes a BStringError into a FromSafeArrElemError. This means the conversion is free.

source§

impl From<IntoVariantError> for ElementError

source§

fn from(ive: IntoVariantError) -> Self

Uses From impls on [IntoSafeArrElemError] and [ElementError`] to convert the error.

source§

impl From<IntoVariantError> for IntoSafeArrElemError

source§

impl From<IntoVariantError> for IntoSafeArrayError

source§

fn from(ive: IntoVariantError) -> Self

Boxes a FromVariantError into a FromSafeArrElemError which means the conversion is free.

source§

impl<'c> TryConvert<&'c Currency, IntoVariantError> for CY

source§

fn try_convert(val: &'c Currency) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c Date, IntoVariantError> for f64

source§

fn try_convert(val: &'c Date) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c DecWrapper, IntoVariantError> for DECIMAL

source§

fn try_convert(val: &'c DecWrapper) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c Int, IntoVariantError> for i32

source§

fn try_convert(val: &'c Int) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c SCode, IntoVariantError> for i32

source§

fn try_convert(val: &'c SCode) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c UInt, IntoVariantError> for u32

source§

fn try_convert(val: &'c UInt) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c VariantBool, IntoVariantError> for bool

source§

fn try_convert(val: &'c VariantBool) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c VariantBool, IntoVariantError> for VARIANT_BOOL

source§

fn try_convert(val: &'c VariantBool) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut Currency, IntoVariantError> for CY

source§

fn try_convert(val: &'c mut Currency) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut Date, IntoVariantError> for f64

source§

fn try_convert(val: &'c mut Date) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut DecWrapper, IntoVariantError> for DECIMAL

source§

fn try_convert(val: &'c mut DecWrapper) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut Int, IntoVariantError> for i32

source§

fn try_convert(val: &'c mut Int) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut SCode, IntoVariantError> for i32

source§

fn try_convert(val: &'c mut SCode) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut UInt, IntoVariantError> for u32

source§

fn try_convert(val: &'c mut UInt) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut VariantBool, IntoVariantError> for bool

source§

fn try_convert(val: &'c mut VariantBool) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut VariantBool, IntoVariantError> for VARIANT_BOOL

source§

fn try_convert(val: &'c mut VariantBool) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<Box<Currency, Global>, IntoVariantError> for *mut CY

source§

fn try_convert(b: Box<Currency>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<Date, Global>, IntoVariantError> for *mut f64

source§

fn try_convert(b: Box<Date>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<Int, Global>, IntoVariantError> for *mut i32

source§

fn try_convert(b: Box<Int>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<SCode, Global>, IntoVariantError> for *mut i32

source§

fn try_convert(b: Box<SCode>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<UInt, Global>, IntoVariantError> for *mut u32

source§

fn try_convert(b: Box<UInt>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<VariantBool, Global>, IntoVariantError> for *mut VARIANT_BOOL

source§

fn try_convert(b: Box<VariantBool>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<f32, Global>, IntoVariantError> for *mut f32

source§

fn try_convert(b: Box<f32>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<f64, Global>, IntoVariantError> for *mut f64

source§

fn try_convert(b: Box<f64>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<i16, Global>, IntoVariantError> for *mut i16

source§

fn try_convert(b: Box<i16>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<i32, Global>, IntoVariantError> for *mut i32

source§

fn try_convert(b: Box<i32>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<i64, Global>, IntoVariantError> for *mut i64

source§

fn try_convert(b: Box<i64>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<i8, Global>, IntoVariantError> for *mut i8

source§

fn try_convert(b: Box<i8>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<u16, Global>, IntoVariantError> for *mut u16

source§

fn try_convert(b: Box<u16>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<u32, Global>, IntoVariantError> for *mut u32

source§

fn try_convert(b: Box<u32>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<u64, Global>, IntoVariantError> for *mut u64

source§

fn try_convert(b: Box<u64>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Box<u8, Global>, IntoVariantError> for *mut u8

source§

fn try_convert(b: Box<u8>) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<Currency, IntoVariantError> for CY

source§

fn try_convert(val: Currency) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<Date, IntoVariantError> for f64

source§

fn try_convert(val: Date) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<DecWrapper, IntoVariantError> for DECIMAL

source§

fn try_convert(val: DecWrapper) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<Int, IntoVariantError> for i32

source§

fn try_convert(val: Int) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<SCode, IntoVariantError> for i32

source§

fn try_convert(val: SCode) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<UInt, IntoVariantError> for u32

source§

fn try_convert(val: UInt) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<UString<u16>, IntoVariantError> for BSTR

source§

fn try_convert(u: U16String) -> Result<Self, IntoVariantError>

Clones input, then allocates a new BSTR.

Errors

Allocation can throw BStringError.

source§

impl<D, T> TryConvert<Variant<D, T>, IntoVariantError> for Ptr<VARIANT>where D: VariantExt<T>,

source§

fn try_convert(v: Variant<D, T>) -> Result<Self, IntoVariantError>

Converts a Variant<D, T> to a Ptr<VARIANT> where D: VariantExt<T> This converts the value inside Variant into a Ptr which is then stuffed inside a containing variant by the caller of the method.

source§

impl TryConvert<VariantBool, IntoVariantError> for bool

source§

fn try_convert(val: VariantBool) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<VariantBool, IntoVariantError> for VARIANT_BOOL

source§

fn try_convert(val: VariantBool) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<VtEmpty, IntoVariantError> for ()

source§

fn try_convert(_e: VtEmpty) -> Result<Self, IntoVariantError>

Utility method which can fail.
source§

impl TryConvert<VtNull, IntoVariantError> for ()

source§

fn try_convert(_e: VtNull) -> Result<Self, IntoVariantError>

Utility method which can fail.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AsFail for Twhere T: Fail,

source§

fn as_fail(&self) -> &(dyn Fail + 'static)

Converts a reference to Self into a dynamic trait object of Fail.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, F> TryConvert<T, F> for Twhere T: From<T>, F: Fail,

source§

fn try_convert(val: T) -> Result<T, F>

Blanket TryConvert implementation wherever a From is implemented for T. (Which is all types.) This avoids repetitive code. The compiler monomorphizes the code for F. And because its always an Ok, should optimize this code away.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.