Type Alias CapeArrayIntegerIn

Source
pub type CapeArrayIntegerIn<'a> = CapeArrayIn<'a, CapeInteger, ICapeArrayInteger>;
Expand description

CapeArrayIntegerIn wraps an ICapeArrayInteger interface pointer.

Given an ICapeArrayInteger interface pointer, this allows setting and getting the elements.

This interface is typically used as arguments to rust methods on traits that are generated from CAPE-OPEN interfaces that have ICapeArrayInteger input arguments.

§Examples

use cobia::*;

fn test_content(a: &CapeArrayIntegerIn) {
    assert_eq!(a.as_vec(), vec![2,8,10]);
}
 
let arr = cobia::CapeArrayIntegerVec::from_slice(&[2,8,10]);
test_content(&CapeArrayIntegerInFromProvider::from(&arr).as_cape_array_integer_in())

Aliased Type§

pub struct CapeArrayIntegerIn<'a> {
    data: *const i32,
    size: u32,
    pub(crate) interface: &'a *mut ICapeArrayInteger,
    _lifetime: PhantomData<&'a ()>,
    _interface_type: PhantomData<ICapeArrayInteger>,
}

Fields§

§data: *const i32§size: u32§interface: &'a *mut ICapeArrayInteger§_lifetime: PhantomData<&'a ()>§_interface_type: PhantomData<ICapeArrayInteger>

Trait Implementations§