#[repr(C)]pub struct CustomAlloc {
pub mem_context: *mut c_void,
pub malloc_func: MallocFn,
pub free_func: FreeFn,
}Fields§
§mem_context: *mut c_void§malloc_func: MallocFn§free_func: FreeFnTrait Implementations§
Source§impl Clone for CustomAlloc
impl Clone for CustomAlloc
Source§fn clone(&self) -> CustomAlloc
fn clone(&self) -> CustomAlloc
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 CustomAlloc
impl Debug for CustomAlloc
impl Copy for CustomAlloc
Auto Trait Implementations§
impl Freeze for CustomAlloc
impl RefUnwindSafe for CustomAlloc
impl !Send for CustomAlloc
impl !Sync for CustomAlloc
impl Unpin for CustomAlloc
impl UnwindSafe for CustomAlloc
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