Enum oaidl::ElementError
source · pub enum ElementError {
From(Box<FromSafeArrElemError>),
Into(Box<IntoSafeArrElemError>),
}
Expand description
Supererror type for SafeArray element conversion errors
Variants§
From(Box<FromSafeArrElemError>)
Holds FromSafeArrElemErrors in a box
Into(Box<IntoSafeArrElemError>)
Holds IntoSafeArrElemErrors in a box
Trait Implementations§
source§impl Debug for ElementError
impl Debug for ElementError
source§impl Display for ElementError
impl Display for ElementError
source§impl Fail for ElementError
impl Fail for ElementError
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<FromSafeArrElemError> for ElementError
impl From<FromSafeArrElemError> for ElementError
source§fn from(fsaee: FromSafeArrElemError) -> ElementError
fn from(fsaee: FromSafeArrElemError) -> ElementError
Holds a FromSafeArrElemError
with a box. This means conversion is free.
source§impl From<FromVariantError> for ElementError
impl From<FromVariantError> for ElementError
source§fn from(fve: FromVariantError) -> Self
fn from(fve: FromVariantError) -> Self
Uses From impls on FromSafeArrElemError] and [
ElementError` to convert the error.
source§impl From<IntoSafeArrElemError> for ElementError
impl From<IntoSafeArrElemError> for ElementError
source§fn from(isaee: IntoSafeArrElemError) -> ElementError
fn from(isaee: IntoSafeArrElemError) -> ElementError
Holds a IntoSafeArrElemError
with a box. This means conversion is free.
source§impl From<IntoVariantError> for ElementError
impl From<IntoVariantError> for ElementError
source§fn from(ive: IntoVariantError) -> Self
fn from(ive: IntoVariantError) -> Self
Uses From impls on IntoSafeArrElemError] and [
ElementError` to convert the error.
source§impl TryConvert<*mut u16, ElementError> for U16String
impl TryConvert<*mut u16, ElementError> for U16String
source§fn try_convert(ptr: BSTR) -> Result<Self, ElementError>
fn try_convert(ptr: BSTR) -> Result<Self, ElementError>
source§impl TryConvert<CY, ElementError> for Currency
impl TryConvert<CY, ElementError> for Currency
source§fn try_convert(val: CY) -> Result<Self, ElementError>
fn try_convert(val: CY) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<Currency, ElementError> for CY
impl TryConvert<Currency, ElementError> for CY
source§fn try_convert(val: Currency) -> Result<Self, ElementError>
fn try_convert(val: Currency) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<DECIMAL, ElementError> for DecWrapper
impl TryConvert<DECIMAL, ElementError> for DecWrapper
source§fn try_convert(val: DECIMAL) -> Result<Self, ElementError>
fn try_convert(val: DECIMAL) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<Date, ElementError> for f64
impl TryConvert<Date, ElementError> for f64
source§fn try_convert(val: Date) -> Result<Self, ElementError>
fn try_convert(val: Date) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<DecWrapper, ElementError> for DECIMAL
impl TryConvert<DecWrapper, ElementError> for DECIMAL
source§fn try_convert(val: DecWrapper) -> Result<Self, ElementError>
fn try_convert(val: DecWrapper) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<Int, ElementError> for i32
impl TryConvert<Int, ElementError> for i32
source§fn try_convert(val: Int) -> Result<Self, ElementError>
fn try_convert(val: Int) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<Ptr<IDispatch>, ElementError> for *mut IDispatch
impl TryConvert<Ptr<IDispatch>, ElementError> for *mut IDispatch
source§fn try_convert(p: Ptr<IDispatch>) -> Result<Self, ElementError>
fn try_convert(p: Ptr<IDispatch>) -> Result<Self, ElementError>
Unwraps the Ptr with [as_ptr()
]
source§impl TryConvert<Ptr<IUnknown>, ElementError> for *mut IUnknown
impl TryConvert<Ptr<IUnknown>, ElementError> for *mut IUnknown
source§fn try_convert(p: Ptr<IUnknown>) -> Result<Self, ElementError>
fn try_convert(p: Ptr<IUnknown>) -> Result<Self, ElementError>
Unwraps the Ptr with [as_ptr()
]
source§impl<D, T> TryConvert<Ptr<VARIANT>, ElementError> for Variant<D, T>where
D: VariantExt<T>,
impl<D, T> TryConvert<Ptr<VARIANT>, ElementError> for Variant<D, T>where
D: VariantExt<T>,
source§fn try_convert(ptr: Ptr<VARIANT>) -> Result<Self, ElementError>
fn try_convert(ptr: Ptr<VARIANT>) -> Result<Self, ElementError>
Converts a Ptr<VARIANT>
to a Variant<D, T>
where D: VariantExt<T>
source§impl TryConvert<SCode, ElementError> for i32
impl TryConvert<SCode, ElementError> for i32
source§fn try_convert(val: SCode) -> Result<Self, ElementError>
fn try_convert(val: SCode) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<UInt, ElementError> for u32
impl TryConvert<UInt, ElementError> for u32
source§fn try_convert(val: UInt) -> Result<Self, ElementError>
fn try_convert(val: UInt) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<UString<u16>, ElementError> for BSTR
impl TryConvert<UString<u16>, ElementError> for BSTR
source§fn try_convert(u: U16String) -> Result<Self, ElementError>
fn try_convert(u: U16String) -> Result<Self, ElementError>
source§impl<D, T> TryConvert<Variant<D, T>, ElementError> for Ptr<VARIANT>where
D: VariantExt<T>,
impl<D, T> TryConvert<Variant<D, T>, ElementError> for Ptr<VARIANT>where
D: VariantExt<T>,
source§fn try_convert(v: Variant<D, T>) -> Result<Self, ElementError>
fn try_convert(v: Variant<D, T>) -> Result<Self, ElementError>
Converts a Variant<D, T>
to a Ptr<VARIANT>
where D: VariantExt<T>
This converts the value inside Variant into a Ptr
source§impl TryConvert<VariantBool, ElementError> for VARIANT_BOOL
impl TryConvert<VariantBool, ElementError> for VARIANT_BOOL
source§fn try_convert(val: VariantBool) -> Result<Self, ElementError>
fn try_convert(val: VariantBool) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<VariantBool, ElementError> for bool
impl TryConvert<VariantBool, ElementError> for bool
source§fn try_convert(val: VariantBool) -> Result<Self, ElementError>
fn try_convert(val: VariantBool) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<bool, ElementError> for VariantBool
impl TryConvert<bool, ElementError> for VariantBool
source§fn try_convert(val: bool) -> Result<Self, ElementError>
fn try_convert(val: bool) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<f64, ElementError> for Date
impl TryConvert<f64, ElementError> for Date
source§fn try_convert(val: f64) -> Result<Self, ElementError>
fn try_convert(val: f64) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<i16, ElementError> for VariantBool
impl TryConvert<i16, ElementError> for VariantBool
source§fn try_convert(val: VARIANT_BOOL) -> Result<Self, ElementError>
fn try_convert(val: VARIANT_BOOL) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<i32, ElementError> for Int
impl TryConvert<i32, ElementError> for Int
source§fn try_convert(val: i32) -> Result<Self, ElementError>
fn try_convert(val: i32) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<i32, ElementError> for SCode
impl TryConvert<i32, ElementError> for SCode
source§fn try_convert(val: i32) -> Result<Self, ElementError>
fn try_convert(val: i32) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<u32, ElementError> for UInt
impl TryConvert<u32, ElementError> for UInt
source§fn try_convert(val: u32) -> Result<Self, ElementError>
fn try_convert(val: u32) -> Result<Self, ElementError>
Does not return any errors.