Struct libquickjs_sys::JSMallocFunctions [−][src]
#[repr(C)]pub struct JSMallocFunctions { pub js_malloc: Option<unsafe extern "C" fn(s: *mut JSMallocState, size: size_t) -> *mut c_void>, pub js_free: Option<unsafe extern "C" fn(s: *mut JSMallocState, ptr: *mut c_void)>, pub js_realloc: Option<unsafe extern "C" fn(s: *mut JSMallocState, ptr: *mut c_void, size: size_t) -> *mut c_void>, pub js_malloc_usable_size: Option<unsafe extern "C" fn(ptr: *const c_void) -> size_t>, }
Fields
js_malloc: Option<unsafe extern "C" fn(s: *mut JSMallocState, size: size_t) -> *mut c_void>
js_free: Option<unsafe extern "C" fn(s: *mut JSMallocState, ptr: *mut c_void)>
js_realloc: Option<unsafe extern "C" fn(s: *mut JSMallocState, ptr: *mut c_void, size: size_t) -> *mut c_void>
js_malloc_usable_size: Option<unsafe extern "C" fn(ptr: *const c_void) -> size_t>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JSMallocFunctions
impl Send for JSMallocFunctions
impl Sync for JSMallocFunctions
impl Unpin for JSMallocFunctions
impl UnwindSafe for JSMallocFunctions
Blanket Implementations
Mutably borrows from an owned value. Read more