Enum oaidl::FromVariantError
source · pub enum FromVariantError {
VariantPtrNull,
}
Expand description
Encapsulates the ways converting from a VARIANT
can fail.
Variants§
VariantPtrNull
VARIANT
pointer during conversion was null
Trait Implementations§
source§impl Clone for FromVariantError
impl Clone for FromVariantError
source§fn clone(&self) -> FromVariantError
fn clone(&self) -> FromVariantError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FromVariantError
impl Debug for FromVariantError
source§impl Display for FromVariantError
impl Display for FromVariantError
source§impl Fail for FromVariantError
impl Fail for FromVariantError
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<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<FromVariantError> for FromSafeArrElemError
impl From<FromVariantError> for FromSafeArrElemError
source§fn from(fve: FromVariantError) -> FromSafeArrElemError
fn from(fve: FromVariantError) -> FromSafeArrElemError
Boxes a FromVariantError
into a FromSafeArrElemError
which means the conversion is free.
source§impl From<FromVariantError> for FromSafeArrayError
impl From<FromVariantError> for FromSafeArrayError
source§fn from(fve: FromVariantError) -> Self
fn from(fve: FromVariantError) -> Self
Boxes a FromVariantError
into a FromSafeArrElemError
which means the conversion is free.
source§impl From<FromVariantError> for SafeArrayError
impl From<FromVariantError> for SafeArrayError
source§fn from(fve: FromVariantError) -> Self
fn from(fve: FromVariantError) -> Self
Uses From impls on [FromSafeArrayError] and [
SafeArrayError`] to convert the error.
source§impl<'c> TryConvert<&'c CY, FromVariantError> for Currency
impl<'c> TryConvert<&'c CY, FromVariantError> for Currency
source§fn try_convert(val: &'c CY) -> Result<Self, FromVariantError>
fn try_convert(val: &'c CY) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c DECIMAL, FromVariantError> for DecWrapper
impl<'c> TryConvert<&'c DECIMAL, FromVariantError> for DecWrapper
source§fn try_convert(val: &'c DECIMAL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c DECIMAL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c bool, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c bool, FromVariantError> for VariantBool
source§fn try_convert(val: &'c bool) -> Result<Self, FromVariantError>
fn try_convert(val: &'c bool) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c f64, FromVariantError> for Date
impl<'c> TryConvert<&'c f64, FromVariantError> for Date
source§fn try_convert(val: &'c f64) -> Result<Self, FromVariantError>
fn try_convert(val: &'c f64) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c i16, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c i16, FromVariantError> for VariantBool
source§fn try_convert(val: &'c VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c VARIANT_BOOL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c i32, FromVariantError> for Int
impl<'c> TryConvert<&'c i32, FromVariantError> for Int
source§fn try_convert(val: &'c i32) -> Result<Self, FromVariantError>
fn try_convert(val: &'c i32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c i32, FromVariantError> for SCode
impl<'c> TryConvert<&'c i32, FromVariantError> for SCode
source§fn try_convert(val: &'c i32) -> Result<Self, FromVariantError>
fn try_convert(val: &'c i32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut CY, FromVariantError> for Currency
impl<'c> TryConvert<&'c mut CY, FromVariantError> for Currency
source§fn try_convert(val: &'c mut CY) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut CY) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut DECIMAL, FromVariantError> for DecWrapper
impl<'c> TryConvert<&'c mut DECIMAL, FromVariantError> for DecWrapper
source§fn try_convert(val: &'c mut DECIMAL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut DECIMAL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut bool, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c mut bool, FromVariantError> for VariantBool
source§fn try_convert(val: &'c mut bool) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut bool) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut f64, FromVariantError> for Date
impl<'c> TryConvert<&'c mut f64, FromVariantError> for Date
source§fn try_convert(val: &'c mut f64) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut f64) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut i16, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c mut i16, FromVariantError> for VariantBool
source§fn try_convert(val: &'c mut VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut VARIANT_BOOL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut i32, FromVariantError> for Int
impl<'c> TryConvert<&'c mut i32, FromVariantError> for Int
source§fn try_convert(val: &'c mut i32) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut i32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut i32, FromVariantError> for SCode
impl<'c> TryConvert<&'c mut i32, FromVariantError> for SCode
source§fn try_convert(val: &'c mut i32) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut i32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut u32, FromVariantError> for UInt
impl<'c> TryConvert<&'c mut u32, FromVariantError> for UInt
source§fn try_convert(val: &'c mut u32) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut u32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c u32, FromVariantError> for UInt
impl<'c> TryConvert<&'c u32, FromVariantError> for UInt
source§fn try_convert(val: &'c u32) -> Result<Self, FromVariantError>
fn try_convert(val: &'c u32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<(), FromVariantError> for VtEmpty
impl TryConvert<(), FromVariantError> for VtEmpty
source§fn try_convert(_e: ()) -> Result<Self, FromVariantError>
fn try_convert(_e: ()) -> Result<Self, FromVariantError>
source§impl TryConvert<(), FromVariantError> for VtNull
impl TryConvert<(), FromVariantError> for VtNull
source§fn try_convert(_e: ()) -> Result<Self, FromVariantError>
fn try_convert(_e: ()) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut CY, FromVariantError> for Box<Currency>
impl TryConvert<*mut CY, FromVariantError> for Box<Currency>
source§fn try_convert(inner: *mut CY) -> Result<Self, FromVariantError>
fn try_convert(inner: *mut CY) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut f32, FromVariantError> for Box<f32>
impl TryConvert<*mut f32, FromVariantError> for Box<f32>
source§fn try_convert(ptr: *mut f32) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut f32) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut f64, FromVariantError> for Box<Date>
impl TryConvert<*mut f64, FromVariantError> for Box<Date>
source§fn try_convert(inner: *mut f64) -> Result<Self, FromVariantError>
fn try_convert(inner: *mut f64) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut f64, FromVariantError> for Box<f64>
impl TryConvert<*mut f64, FromVariantError> for Box<f64>
source§fn try_convert(ptr: *mut f64) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut f64) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut i16, FromVariantError> for Box<VariantBool>
impl TryConvert<*mut i16, FromVariantError> for Box<VariantBool>
source§fn try_convert(inner: *mut VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(inner: *mut VARIANT_BOOL) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut i16, FromVariantError> for Box<i16>
impl TryConvert<*mut i16, FromVariantError> for Box<i16>
source§fn try_convert(ptr: *mut i16) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut i16) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut i32, FromVariantError> for Box<Int>
impl TryConvert<*mut i32, FromVariantError> for Box<Int>
source§fn try_convert(inner: *mut i32) -> Result<Self, FromVariantError>
fn try_convert(inner: *mut i32) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut i32, FromVariantError> for Box<SCode>
impl TryConvert<*mut i32, FromVariantError> for Box<SCode>
source§fn try_convert(inner: *mut i32) -> Result<Self, FromVariantError>
fn try_convert(inner: *mut i32) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut i32, FromVariantError> for Box<i32>
impl TryConvert<*mut i32, FromVariantError> for Box<i32>
source§fn try_convert(ptr: *mut i32) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut i32) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut i64, FromVariantError> for Box<i64>
impl TryConvert<*mut i64, FromVariantError> for Box<i64>
source§fn try_convert(ptr: *mut i64) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut i64) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut i8, FromVariantError> for Box<i8>
impl TryConvert<*mut i8, FromVariantError> for Box<i8>
source§fn try_convert(ptr: *mut i8) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut i8) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut u16, FromVariantError> for Box<u16>
impl TryConvert<*mut u16, FromVariantError> for Box<u16>
source§fn try_convert(ptr: *mut u16) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut u16) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut u16, FromVariantError> for U16String
impl TryConvert<*mut u16, FromVariantError> for U16String
source§fn try_convert(p: BSTR) -> Result<Self, FromVariantError>
fn try_convert(p: BSTR) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut u32, FromVariantError> for Box<UInt>
impl TryConvert<*mut u32, FromVariantError> for Box<UInt>
source§fn try_convert(inner: *mut u32) -> Result<Self, FromVariantError>
fn try_convert(inner: *mut u32) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut u32, FromVariantError> for Box<u32>
impl TryConvert<*mut u32, FromVariantError> for Box<u32>
source§fn try_convert(ptr: *mut u32) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut u32) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut u64, FromVariantError> for Box<u64>
impl TryConvert<*mut u64, FromVariantError> for Box<u64>
source§fn try_convert(ptr: *mut u64) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut u64) -> Result<Self, FromVariantError>
source§impl TryConvert<*mut u8, FromVariantError> for Box<u8>
impl TryConvert<*mut u8, FromVariantError> for Box<u8>
source§fn try_convert(ptr: *mut u8) -> Result<Self, FromVariantError>
fn try_convert(ptr: *mut u8) -> Result<Self, FromVariantError>
source§impl TryConvert<CY, FromVariantError> for Currency
impl TryConvert<CY, FromVariantError> for Currency
source§fn try_convert(val: CY) -> Result<Self, FromVariantError>
fn try_convert(val: CY) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<DECIMAL, FromVariantError> for DecWrapper
impl TryConvert<DECIMAL, FromVariantError> for DecWrapper
source§fn try_convert(val: DECIMAL) -> Result<Self, FromVariantError>
fn try_convert(val: DECIMAL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<D, T> TryConvert<Ptr<VARIANT>, FromVariantError> for Variant<D, T>where
D: VariantExt<T>,
impl<D, T> TryConvert<Ptr<VARIANT>, FromVariantError> for Variant<D, T>where D: VariantExt<T>,
source§fn try_convert(ptr: Ptr<VARIANT>) -> Result<Self, FromVariantError>
fn try_convert(ptr: Ptr<VARIANT>) -> Result<Self, FromVariantError>
Converts a Ptr<VARIANT>
to a Variant<D, T>
where D: VariantExt<T>
source§impl TryConvert<bool, FromVariantError> for VariantBool
impl TryConvert<bool, FromVariantError> for VariantBool
source§fn try_convert(val: bool) -> Result<Self, FromVariantError>
fn try_convert(val: bool) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<f64, FromVariantError> for Date
impl TryConvert<f64, FromVariantError> for Date
source§fn try_convert(val: f64) -> Result<Self, FromVariantError>
fn try_convert(val: f64) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<i16, FromVariantError> for VariantBool
impl TryConvert<i16, FromVariantError> for VariantBool
source§fn try_convert(val: VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(val: VARIANT_BOOL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<i32, FromVariantError> for Int
impl TryConvert<i32, FromVariantError> for Int
source§fn try_convert(val: i32) -> Result<Self, FromVariantError>
fn try_convert(val: i32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<i32, FromVariantError> for SCode
impl TryConvert<i32, FromVariantError> for SCode
source§fn try_convert(val: i32) -> Result<Self, FromVariantError>
fn try_convert(val: i32) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<u32, FromVariantError> for UInt
impl TryConvert<u32, FromVariantError> for UInt
source§fn try_convert(val: u32) -> Result<Self, FromVariantError>
fn try_convert(val: u32) -> Result<Self, FromVariantError>
Does not return any errors.
impl Copy for FromVariantError
Auto Trait Implementations§
impl RefUnwindSafe for FromVariantError
impl Send for FromVariantError
impl Sync for FromVariantError
impl Unpin for FromVariantError
impl UnwindSafe for FromVariantError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T, F> TryConvert<T, F> for Twhere
T: From<T>,
F: Fail,
impl<T, F> TryConvert<T, F> for Twhere T: From<T>, F: Fail,
source§fn try_convert(val: T) -> Result<T, F>
fn try_convert(val: T) -> Result<T, F>
Blanket TryConvert implementation wherever a From