#[repr(C)]pub struct SquashMemoryFuncs {
pub malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>,
pub realloc: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize) -> *mut c_void>,
pub calloc: Option<unsafe extern "C" fn(nmemb: usize, size: usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(ptr: *mut c_void)>,
pub aligned_alloc: Option<unsafe extern "C" fn(alignment: usize, size: usize) -> *mut c_void>,
pub aligned_free: Option<unsafe extern "C" fn(ptr: *mut c_void)>,
}Fields§
§malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>§realloc: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize) -> *mut c_void>§calloc: Option<unsafe extern "C" fn(nmemb: usize, size: usize) -> *mut c_void>§free: Option<unsafe extern "C" fn(ptr: *mut c_void)>§aligned_alloc: Option<unsafe extern "C" fn(alignment: usize, size: usize) -> *mut c_void>§aligned_free: Option<unsafe extern "C" fn(ptr: *mut c_void)>Trait Implementations§
Source§impl Clone for SquashMemoryFuncs
impl Clone for SquashMemoryFuncs
Source§fn clone(&self) -> SquashMemoryFuncs
fn clone(&self) -> SquashMemoryFuncs
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 SquashMemoryFuncs
impl Debug for SquashMemoryFuncs
impl Copy for SquashMemoryFuncs
Auto Trait Implementations§
impl Freeze for SquashMemoryFuncs
impl RefUnwindSafe for SquashMemoryFuncs
impl Send for SquashMemoryFuncs
impl Sync for SquashMemoryFuncs
impl Unpin for SquashMemoryFuncs
impl UnwindSafe for SquashMemoryFuncs
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