#[repr(C)]pub struct tm_temp_allocator_api {Show 13 fields
pub init_1024: Option<unsafe extern "C" fn(*mut tm_temp_allocator_1024_o, *mut tm_allocator_i)>,
pub shutdown_1024: Option<unsafe extern "C" fn(*mut tm_temp_allocator_1024_o)>,
pub create: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_temp_allocator_i>,
pub destroy: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i)>,
pub allocator: Option<unsafe extern "C" fn(*mut tm_allocator_i, *mut tm_temp_allocator_i)>,
pub frame_alloc: Option<unsafe extern "C" fn(u64) -> *mut c_void>,
pub frame_allocator: Option<unsafe extern "C" fn() -> *mut tm_allocator_i>,
pub tick_frame: Option<unsafe extern "C" fn()>,
pub vprintf: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, *mut i8) -> *mut i8>,
pub printf: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, ...) -> *mut i8>,
pub frame_vprintf: Option<unsafe extern "C" fn(*const i8, *mut i8) -> *mut i8>,
pub frame_printf: Option<unsafe extern "C" fn(*const i8, ...) -> *mut i8>,
pub statistics: *mut tm_temp_allocator_statistics_t,
}Fields§
§init_1024: Option<unsafe extern "C" fn(*mut tm_temp_allocator_1024_o, *mut tm_allocator_i)>§shutdown_1024: Option<unsafe extern "C" fn(*mut tm_temp_allocator_1024_o)>§create: Option<unsafe extern "C" fn(*mut tm_allocator_i) -> *mut tm_temp_allocator_i>§destroy: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i)>§allocator: Option<unsafe extern "C" fn(*mut tm_allocator_i, *mut tm_temp_allocator_i)>§frame_alloc: Option<unsafe extern "C" fn(u64) -> *mut c_void>§frame_allocator: Option<unsafe extern "C" fn() -> *mut tm_allocator_i>§tick_frame: Option<unsafe extern "C" fn()>§vprintf: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, *mut i8) -> *mut i8>§printf: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i, *const i8, ...) -> *mut i8>§frame_vprintf: Option<unsafe extern "C" fn(*const i8, *mut i8) -> *mut i8>§frame_printf: Option<unsafe extern "C" fn(*const i8, ...) -> *mut i8>§statistics: *mut tm_temp_allocator_statistics_tTrait Implementations§
Source§impl Clone for tm_temp_allocator_api
impl Clone for tm_temp_allocator_api
Source§fn clone(&self) -> tm_temp_allocator_api
fn clone(&self) -> tm_temp_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_temp_allocator_api
Auto Trait Implementations§
impl Freeze for tm_temp_allocator_api
impl RefUnwindSafe for tm_temp_allocator_api
impl !Send for tm_temp_allocator_api
impl !Sync for tm_temp_allocator_api
impl Unpin for tm_temp_allocator_api
impl UnwindSafe for tm_temp_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