#[repr(C)]pub struct BuddyAllocatorRawApi {
pub init: Option<unsafe extern "C" fn(buffer: *mut u8, size: u32, block_size: u32)>,
pub realloc: Option<unsafe extern "C" fn(buffer: *mut u8, ptr: *mut c_void, old_size: u64, new_size: u64) -> *mut c_void>,
}Fields§
§init: Option<unsafe extern "C" fn(buffer: *mut u8, size: u32, block_size: u32)>§realloc: Option<unsafe extern "C" fn(buffer: *mut u8, ptr: *mut c_void, old_size: u64, new_size: u64) -> *mut c_void>Implementations§
Trait Implementations§
Source§impl Clone for BuddyAllocatorRawApi
impl Clone for BuddyAllocatorRawApi
Source§fn clone(&self) -> BuddyAllocatorRawApi
fn clone(&self) -> BuddyAllocatorRawApi
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 Default for BuddyAllocatorRawApi
impl Default for BuddyAllocatorRawApi
Source§fn default() -> BuddyAllocatorRawApi
fn default() -> BuddyAllocatorRawApi
Returns the “default value” for a type. Read more
impl Copy for BuddyAllocatorRawApi
Auto Trait Implementations§
impl Freeze for BuddyAllocatorRawApi
impl RefUnwindSafe for BuddyAllocatorRawApi
impl Send for BuddyAllocatorRawApi
impl Sync for BuddyAllocatorRawApi
impl Unpin for BuddyAllocatorRawApi
impl UnwindSafe for BuddyAllocatorRawApi
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