#[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 copy 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
Source§impl Ord for base_allocator
impl Ord for base_allocator
Source§fn cmp(&self, other: &base_allocator) -> Ordering
fn cmp(&self, other: &base_allocator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for base_allocator
impl PartialEq for base_allocator
Source§impl PartialOrd for base_allocator
impl PartialOrd for base_allocator
impl Copy for base_allocator
impl Eq for base_allocator
impl StructuralPartialEq 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