Enum oaidl::IntoSafeArrayError [−][src]
pub enum IntoSafeArrayError { ElementConversionFailed { index: usize, element: Box<ElementError>, }, SafeArrayCreateFailed, }
Represents the different ways converting into SAFEARRAY
can fail
Variants
ElementConversionFailed
Encapsulates the ElementError
that occurred during conversion
Fields of ElementConversionFailed
index: usize | the index the conversion failed at |
element: Box<ElementError> | The element error encapsulating the failure |
SafeArrayCreateFailed
The called to SafeArrayCreate
failed
Methods
impl IntoSafeArrayError
[src]
impl IntoSafeArrayError
pub fn from_element_err<E: Into<ElementError>>(
ee: E,
index: usize
) -> IntoSafeArrayError
[src]
pub fn from_element_err<E: Into<ElementError>>(
ee: E,
index: usize
) -> IntoSafeArrayError
converts an ElementError
into a FromSafeArrayError
Need the index so a From impl doesn't apply
Trait Implementations
impl Debug for IntoSafeArrayError
[src]
impl Debug for IntoSafeArrayError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<IntoSafeArrayError> for SafeArrayError
[src]
impl From<IntoSafeArrayError> for SafeArrayError
fn from(isae: IntoSafeArrayError) -> SafeArrayError
[src]
fn from(isae: IntoSafeArrayError) -> SafeArrayError
Performs the conversion.
Auto Trait Implementations
impl Send for IntoSafeArrayError
impl Send for IntoSafeArrayError
impl Sync for IntoSafeArrayError
impl Sync for IntoSafeArrayError