pub struct ArrayObj {
pub data: *mut c_void,
pub size: i64,
pub capacity: i64,
pub data_deleter: Option<unsafe extern "C" fn(*mut c_void)>,
/* private fields */
}Expand description
The object behind an Array, laid out as the C++ ArrayObj.
Fields§
§data: *mut c_voidThe element buffer, capacity TVMFFIAny cells.
size: i64The number of initialized elements.
capacity: i64The number of cells in the buffer.
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
Source§const TYPE_DEPTH: i32
const TYPE_DEPTH: i32
Depth of this type in the object inheritance tree. Read more
Source§fn type_index() -> i32
fn type_index() -> i32
The runtime type index of this type.
Source§unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
unsafe fn object_header_mut(this: &mut Self) -> &mut TVMFFIObject
The object header, mutably. Read more
Source§impl ObjectCoreWithExtraItems for ArrayObj
impl ObjectCoreWithExtraItems for ArrayObj
Auto Trait Implementations§
impl !Freeze for ArrayObj
impl !Send for ArrayObj
impl !Sync for ArrayObj
impl Forget for ArrayObj
impl Move for ArrayObj
impl RefUnwindSafe for ArrayObj
impl Unpin for ArrayObj
impl UnsafeUnpin 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