pub struct ListObj {
pub data_deleter: Option<unsafe extern "C" fn(*mut c_void)>,
/* private fields */
}Expand description
The object behind a List, laid out as the C++ ListObj. Unlike
ffi.Array, the element buffer data is a separate allocation that the
runtime replaces when the list grows.
Fields§
§data_deleter: Option<unsafe extern "C" fn(*mut c_void)>Deleter for the element buffer.
Implementations§
Trait Implementations§
Source§impl ObjectCore for ListObj
impl ObjectCore for ListObj
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
Auto Trait Implementations§
impl !Freeze for ListObj
impl !RefUnwindSafe for ListObj
impl !Send for ListObj
impl !Sync for ListObj
impl Unpin for ListObj
impl UnsafeUnpin 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