#[repr(C)]pub struct BuddyAllocatorApi {
pub create: Option<unsafe extern "C" fn(backing: *mut AllocatorI, initial_size: u32, block_size: u32) -> *mut AllocatorI>,
pub destroy: Option<unsafe extern "C" fn(a: *mut AllocatorI)>,
}Fields§
§create: Option<unsafe extern "C" fn(backing: *mut AllocatorI, initial_size: u32, block_size: u32) -> *mut AllocatorI>§destroy: Option<unsafe extern "C" fn(a: *mut AllocatorI)>Implementations§
Source§impl BuddyAllocatorApi
impl BuddyAllocatorApi
pub unsafe fn create( &self, backing: *mut AllocatorI, initial_size: u32, block_size: u32, ) -> *mut AllocatorI
pub unsafe fn destroy(&self, a: *mut AllocatorI)
Trait Implementations§
Source§impl Clone for BuddyAllocatorApi
impl Clone for BuddyAllocatorApi
Source§fn clone(&self) -> BuddyAllocatorApi
fn clone(&self) -> BuddyAllocatorApi
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 BuddyAllocatorApi
impl Default for BuddyAllocatorApi
Source§fn default() -> BuddyAllocatorApi
fn default() -> BuddyAllocatorApi
Returns the “default value” for a type. Read more
impl Copy for BuddyAllocatorApi
Auto Trait Implementations§
impl Freeze for BuddyAllocatorApi
impl RefUnwindSafe for BuddyAllocatorApi
impl Send for BuddyAllocatorApi
impl Sync for BuddyAllocatorApi
impl Unpin for BuddyAllocatorApi
impl UnwindSafe for BuddyAllocatorApi
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