#[repr(C)]pub struct s_memallocator {
pub priv_: *mut c_void,
pub malloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_uint) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void)>,
pub realloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void, arg3: c_uint) -> *mut c_void>,
}Fields§
§priv_: *mut c_void§malloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: c_uint) -> *mut c_void>§free: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void)>§realloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void, arg3: c_uint) -> *mut c_void>Trait Implementations§
Source§impl Clone for s_memallocator
impl Clone for s_memallocator
Source§fn clone(&self) -> s_memallocator
fn clone(&self) -> s_memallocator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for s_memallocator
impl Debug for s_memallocator
impl Copy for s_memallocator
Auto Trait Implementations§
impl Freeze for s_memallocator
impl RefUnwindSafe for s_memallocator
impl !Send for s_memallocator
impl !Sync for s_memallocator
impl Unpin for s_memallocator
impl UnwindSafe for s_memallocator
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