pub type CapeArrayByteIn<'a> = CapeArrayIn<'a, CapeByte, ICapeArrayByte>;Expand description
CapeArrayByteIn wraps an ICapeArrayByte interface pointer.
Given an ICapeArrayByte 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 ICapeArrayByte input arguments.
§Examples
use cobia::*;
fn test_content(a: &CapeArrayByteIn) {
assert_eq!(a.as_vec(), vec![2u8,8u8,10u8]);
}
let arr = cobia::CapeArrayByteVec::from_slice(&[2u8,8u8,10u8]);
test_content(&CapeArrayByteInFromProvider::from(&arr).as_cape_array_byte_in())Aliased Type§
pub struct CapeArrayByteIn<'a> {
data: *const u8,
size: u32,
pub(crate) interface: &'a *mut ICapeArrayByte,
_lifetime: PhantomData<&'a ()>,
_interface_type: PhantomData<ICapeArrayByte>,
}Fields§
§data: *const u8§size: u32§interface: &'a *mut ICapeArrayByte§_lifetime: PhantomData<&'a ()>§_interface_type: PhantomData<ICapeArrayByte>Trait Implementations§
Source§impl<'a> CapeArrayByteProviderIn for CapeArrayByteIn<'a>
impl<'a> CapeArrayByteProviderIn for CapeArrayByteIn<'a>
Source§fn as_cape_array_byte_in(&self) -> ICapeArrayByte
fn as_cape_array_byte_in(&self) -> ICapeArrayByte
Convert to ICapeArrayByte