Enum oaidl::IntoSafeArrayError
source · pub enum IntoSafeArrayError {
ElementConversionFailed {
index: usize,
element: Box<ElementError>,
},
IntoVariantError(Box<IntoVariantError>),
}
Expand description
Represents the different ways converting into SAFEARRAY
can fail
Variants§
ElementConversionFailed
Fields
§
element: Box<ElementError>
The element error encapsulating the failure
Encapsulates the ElementError
that occurred during conversion
IntoVariantError(Box<IntoVariantError>)
into_variant call failed
Implementations§
source§impl IntoSafeArrayError
impl IntoSafeArrayError
sourcepub fn from_element_err<E: Into<ElementError>>(
ee: E,
index: usize
) -> IntoSafeArrayError
pub fn from_element_err<E: Into<ElementError>>( ee: E, index: usize ) -> IntoSafeArrayError
Boxes an ElementError
into a IntoSafeArrayError
.
Need the index so a From impl doesn’t apply.
Trait Implementations§
source§impl Debug for IntoSafeArrayError
impl Debug for IntoSafeArrayError
source§impl Display for IntoSafeArrayError
impl Display for IntoSafeArrayError
source§impl Fail for IntoSafeArrayError
impl Fail for IntoSafeArrayError
source§fn cause(&self) -> Option<&dyn Fail>
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>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<IntoSafeArrayError> for SafeArrayError
impl From<IntoSafeArrayError> for SafeArrayError
source§fn from(isae: IntoSafeArrayError) -> SafeArrayError
fn from(isae: IntoSafeArrayError) -> SafeArrayError
Holds a IntoSafeArrayError
with a box. This means conversion is free.
source§impl From<IntoVariantError> for IntoSafeArrayError
impl From<IntoVariantError> for IntoSafeArrayError
source§fn from(ive: IntoVariantError) -> Self
fn from(ive: IntoVariantError) -> Self
Boxes a FromVariantError
into a FromSafeArrElemError
which means the conversion is free.
Auto Trait Implementations§
impl RefUnwindSafe for IntoSafeArrayError
impl Send for IntoSafeArrayError
impl Sync for IntoSafeArrayError
impl Unpin for IntoSafeArrayError
impl UnwindSafe for IntoSafeArrayError
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
Mutably borrows from an owned value. Read more
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