#[repr(C)]pub struct ListObj {
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
Container object for List, laid out as C++ ListObj. Unlike
ffi.Array, the element buffer data is a separate allocation that the
C++ runtime replaces when the list grows.
Fields§
§data: *mut c_voidPointer to the start of the element buffer.
size: i64§capacity: i64§data_deleter: Option<unsafe extern "C" fn(_: *mut c_void)>Deleter for the element buffer.
Trait Implementations§
Source§impl ObjectCore for ListObj
impl ObjectCore for ListObj
Source§const TYPE_DEPTH: i32 = 1i32
const TYPE_DEPTH: i32 = 1i32
Depth of this type in the object inheritance tree. Read more
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
Auto Trait Implementations§
impl !Freeze for ListObj
impl RefUnwindSafe for ListObj
impl !Send for ListObj
impl !Sync for ListObj
impl Unpin for ListObj
impl UnwindSafe for ListObj
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