#[repr(C)]pub struct ArrayObj {
pub object: Object,
pub data: *mut c_void,
pub size: i64,
pub capacity: i64,
pub data_deleter: Option<unsafe extern "C" fn(*mut c_void)>,
}Fields§
§object: Object§data: *mut c_voidPointer to the start of the element buffer (AddressOf(0)).
size: i64§capacity: i64§data_deleter: Option<unsafe extern "C" fn(*mut c_void)>Optional custom deleter for the data pointer.
Trait Implementations§
Source§impl ObjectCore for ArrayObj
impl ObjectCore for ArrayObj
fn type_index() -> i32
Source§unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
Return the object header
This function is implemented as a static function so Read more
Source§impl ObjectCoreWithExtraItems for ArrayObj
impl ObjectCoreWithExtraItems for ArrayObj
Source§fn extra_items_count(this: &Self) -> usize
fn extra_items_count(this: &Self) -> usize
Return the number of extra items
Source§unsafe fn extra_items(this: &Self) -> &[Self::ExtraItem]
unsafe fn extra_items(this: &Self) -> &[Self::ExtraItem]
Return the extra items data pointer
Source§unsafe fn extra_items_mut(this: &mut Self) -> &mut [Self::ExtraItem]
unsafe fn extra_items_mut(this: &mut Self) -> &mut [Self::ExtraItem]
Return the extra items data pointer
Auto Trait Implementations§
impl !Freeze for ArrayObj
impl RefUnwindSafe for ArrayObj
impl !Send for ArrayObj
impl !Sync for ArrayObj
impl Unpin for ArrayObj
impl UnwindSafe for ArrayObj
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more