Struct rquickjs_sys::JSMallocFunctions
source · [−]#[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
sourceimpl Clone for JSMallocFunctions
impl Clone for JSMallocFunctions
sourcefn clone(&self) -> JSMallocFunctions
fn clone(&self) -> JSMallocFunctions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JSMallocFunctions
impl Debug for JSMallocFunctions
impl Copy for JSMallocFunctions
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more