pub type CapeArrayRealIn<'a> = CapeArrayIn<'a, CapeReal, ICapeArrayReal>;Expand description
CapeArrayRealIn wraps an ICapeArrayReal interface pointer.
Given an ICapeArrayReal 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 ICapeArrayReal input arguments.
§Examples
use cobia::*;
fn test_content(a: &CapeArrayRealIn) {
assert_eq!(a.as_vec(), vec![4.5,6.5]);
}
let arr = cobia::CapeArrayRealSlice::new(&[4.5,6.5]);
test_content(&CapeArrayRealInFromProvider::from(&arr).as_cape_array_real_in());Aliased Type§
pub struct CapeArrayRealIn<'a> {
data: *const f64,
size: u32,
pub(crate) interface: &'a *mut ICapeArrayReal,
_lifetime: PhantomData<&'a ()>,
_interface_type: PhantomData<ICapeArrayReal>,
}Fields§
§data: *const f64§size: u32§interface: &'a *mut ICapeArrayReal§_lifetime: PhantomData<&'a ()>§_interface_type: PhantomData<ICapeArrayReal>Trait Implementations§
Source§impl<'a> CapeArrayRealProviderIn for CapeArrayRealIn<'a>
impl<'a> CapeArrayRealProviderIn for CapeArrayRealIn<'a>
Source§fn as_cape_array_real_in(&self) -> ICapeArrayReal
fn as_cape_array_real_in(&self) -> ICapeArrayReal
Convert to ICapeArrayReal