Struct v8::RustAllocatorVtable
source · #[repr(C)]pub struct RustAllocatorVtable<T> {
pub allocate: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void,
pub allocate_uninitialized: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void,
pub free: unsafe extern "C" fn(handle: &T, data: *mut c_void, len: usize),
pub reallocate: unsafe extern "C" fn(handle: &T, data: *mut c_void, old_length: usize, new_length: usize) -> *mut c_void,
pub drop: unsafe extern "C" fn(handle: *const T),
}
Expand description
A wrapper around the V8 Allocator class.
Fields§
§allocate: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void
§allocate_uninitialized: unsafe extern "C" fn(handle: &T, len: usize) -> *mut c_void
§free: unsafe extern "C" fn(handle: &T, data: *mut c_void, len: usize)
§reallocate: unsafe extern "C" fn(handle: &T, data: *mut c_void, old_length: usize, new_length: usize) -> *mut c_void
§drop: unsafe extern "C" fn(handle: *const T)
Auto Trait Implementations§
impl<T> RefUnwindSafe for RustAllocatorVtable<T>
impl<T> Send for RustAllocatorVtable<T>
impl<T> Sync for RustAllocatorVtable<T>
impl<T> Unpin for RustAllocatorVtable<T>
impl<T> UnwindSafe for RustAllocatorVtable<T>
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