#[repr(C)]pub struct tm_allocator_api {
pub system: *mut tm_allocator_i,
pub end_of_page: *mut tm_allocator_i,
pub vm: *mut tm_allocator_i,
pub statistics: *mut tm_allocator_statistics_t,
pub create_child: Option<unsafe extern "C" fn(*const tm_allocator_i, *const i8) -> tm_allocator_i>,
pub destroy_child: Option<unsafe extern "C" fn(*const tm_allocator_i)>,
pub destroy_child_allowing_leaks: Option<unsafe extern "C" fn(*const tm_allocator_i, u64)>,
pub create_leaky_root_scope: Option<unsafe extern "C" fn(*const tm_allocator_i, *const i8) -> tm_allocator_i>,
pub create_fixed_vm: Option<unsafe extern "C" fn(u64, u32) -> tm_allocator_i>,
}Fields§
§system: *mut tm_allocator_i§end_of_page: *mut tm_allocator_i§vm: *mut tm_allocator_i§statistics: *mut tm_allocator_statistics_t§create_child: Option<unsafe extern "C" fn(*const tm_allocator_i, *const i8) -> tm_allocator_i>§destroy_child: Option<unsafe extern "C" fn(*const tm_allocator_i)>§destroy_child_allowing_leaks: Option<unsafe extern "C" fn(*const tm_allocator_i, u64)>§create_leaky_root_scope: Option<unsafe extern "C" fn(*const tm_allocator_i, *const i8) -> tm_allocator_i>§create_fixed_vm: Option<unsafe extern "C" fn(u64, u32) -> tm_allocator_i>Trait Implementations§
Source§impl Clone for tm_allocator_api
impl Clone for tm_allocator_api
Source§fn clone(&self) -> tm_allocator_api
fn clone(&self) -> tm_allocator_api
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 moreimpl Copy for tm_allocator_api
Auto Trait Implementations§
impl Freeze for tm_allocator_api
impl RefUnwindSafe for tm_allocator_api
impl !Send for tm_allocator_api
impl !Sync for tm_allocator_api
impl Unpin for tm_allocator_api
impl UnwindSafe for tm_allocator_api
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