#[repr(C)]pub struct AllocatorI {
pub inst: *mut AllocatorO,
pub mem_scope: u32,
pub _padding_16: [c_char; 4],
pub realloc: Option<unsafe extern "C" fn(a: *mut AllocatorI, ptr: *mut c_void, old_size: u64, new_size: u64, file: *const c_char, line: u32) -> *mut c_void>,
}Fields§
§inst: *mut AllocatorO§mem_scope: u32§_padding_16: [c_char; 4]§realloc: Option<unsafe extern "C" fn(a: *mut AllocatorI, ptr: *mut c_void, old_size: u64, new_size: u64, file: *const c_char, line: u32) -> *mut c_void>Trait Implementations§
Source§impl Clone for AllocatorI
impl Clone for AllocatorI
Source§fn clone(&self) -> AllocatorI
fn clone(&self) -> AllocatorI
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 AllocatorI
impl Default for AllocatorI
impl Copy for AllocatorI
Auto Trait Implementations§
impl Freeze for AllocatorI
impl RefUnwindSafe for AllocatorI
impl !Send for AllocatorI
impl !Sync for AllocatorI
impl Unpin for AllocatorI
impl UnwindSafe for AllocatorI
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