Trait oaidl::SafeArrayElement[][src]

pub trait SafeArrayElement: Sized {
    const SFTYPE: u32;

    fn into_safearray(
        &mut self,
        psa: *mut SAFEARRAY,
        ix: i32
    ) -> Result<(), IntoSafeArrElemError>;
fn from_safearray(
        psa: *mut SAFEARRAY,
        ix: i32
    ) -> Result<Self, FromSafeArrElemError>; }

Helper trait implemented for types that can be converted into a safe array. Generally, don't implement this yourself without care. Implemented for types: * i8, u8, i16, u16, i32, u32 * bool, f32, f64 * String, Variant, * Ptr, Ptr

Associated Constants

This is the VT value used to create the SAFEARRAY

Required Methods

puts a type into the safearray at the specified index (default impls use SafeArrayPutElement)

gets a type from the safearray at the specified index (default impls use SafeArrayGetElement)

Implementations on Foreign Types

impl SafeArrayElement for i16
[src]

impl SafeArrayElement for i32
[src]

impl SafeArrayElement for f32
[src]

impl SafeArrayElement for f64
[src]

impl SafeArrayElement for String
[src]

impl SafeArrayElement for bool
[src]

impl SafeArrayElement for Decimal
[src]

impl SafeArrayElement for i8
[src]

impl SafeArrayElement for u8
[src]

impl SafeArrayElement for u16
[src]

impl SafeArrayElement for u32
[src]

Implementors