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
Associated Constants
Required Methods
fn into_safearray(
&mut self,
psa: *mut SAFEARRAY,
ix: i32
) -> Result<(), IntoSafeArrElemError>
&mut self,
psa: *mut SAFEARRAY,
ix: i32
) -> Result<(), IntoSafeArrElemError>
puts a type into the safearray at the specified index (default impls use SafeArrayPutElement)
fn from_safearray(
psa: *mut SAFEARRAY,
ix: i32
) -> Result<Self, FromSafeArrElemError>
psa: *mut SAFEARRAY,
ix: i32
) -> Result<Self, FromSafeArrElemError>
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 i16
impl SafeArrayElement for i32
[src]
impl SafeArrayElement for i32
impl SafeArrayElement for f32
[src]
impl SafeArrayElement for f32
impl SafeArrayElement for f64
[src]
impl SafeArrayElement for f64
impl SafeArrayElement for String
[src]
impl SafeArrayElement for String
impl SafeArrayElement for bool
[src]
impl SafeArrayElement for bool
impl SafeArrayElement for Decimal
[src]
impl SafeArrayElement for Decimal
impl SafeArrayElement for i8
[src]
impl SafeArrayElement for i8
impl SafeArrayElement for u8
[src]
impl SafeArrayElement for u8
impl SafeArrayElement for u16
[src]
impl SafeArrayElement for u16
impl SafeArrayElement for u32
[src]
impl SafeArrayElement for u32
Implementors
impl SafeArrayElement for Currency
impl SafeArrayElement for Date
impl SafeArrayElement for Ptr<IDispatch>
impl SafeArrayElement for SCode
impl<T: VariantExt> SafeArrayElement for Variant<T>
impl SafeArrayElement for Ptr<IUnknown>
impl SafeArrayElement for DecWrapper
impl SafeArrayElement for Int
impl SafeArrayElement for UInt