Trait oaidl::SafeArrayExt[][src]

pub trait SafeArrayExt<T: SafeArrayElement> {
    fn into_safearray(&mut self) -> Result<Ptr<SAFEARRAY>, IntoSafeArrayError>;
fn from_safearray(psa: *mut SAFEARRAY) -> Result<Vec<T>, FromSafeArrayError>; }

Workhorse trait and main interface for converting to/from SAFEARRAY Default impl is on Vec<T: SafeArrayElement>

Required Methods

Use t.into_safearray() to convert a type into a SAFEARRAY

Use T::from_safearray(psa) to convert a safearray pointer into the relevant T

Implementations on Foreign Types

impl<T: SafeArrayElement> SafeArrayExt<T> for Vec<T>
[src]

Implementors