#[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§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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)