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