#[repr(C)]pub struct TempAllocatorApi {
pub create: Option<unsafe extern "C" fn(backing: *mut AllocatorI) -> *mut TempAllocatorI>,
pub create_in_buffer: Option<unsafe extern "C" fn(buffer: *mut c_char, size: u64, backing: *mut AllocatorI) -> *mut TempAllocatorI>,
pub destroy: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI)>,
pub allocator: Option<unsafe extern "C" fn(a: *mut AllocatorI, ta: *mut TempAllocatorI)>,
pub frame_alloc: Option<unsafe extern "C" fn(size: u64) -> *mut c_void>,
pub frame_allocator: Option<unsafe extern "C" fn() -> *mut AllocatorI>,
pub tick_frame: Option<unsafe extern "C" fn()>,
pub printf: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, format: *const c_char, ...) -> *mut c_char>,
pub vprintf: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, format: *const c_char, args: va_list) -> *mut c_char>,
pub frame_printf: Option<unsafe extern "C" fn(format: *const c_char, ...) -> *mut c_char>,
pub frame_vprintf: Option<unsafe extern "C" fn(format: *const c_char, args: va_list) -> *mut c_char>,
pub statistics: *mut TempAllocatorStatisticsT,
}
Fields§
§create: Option<unsafe extern "C" fn(backing: *mut AllocatorI) -> *mut TempAllocatorI>
§create_in_buffer: Option<unsafe extern "C" fn(buffer: *mut c_char, size: u64, backing: *mut AllocatorI) -> *mut TempAllocatorI>
§destroy: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI)>
§allocator: Option<unsafe extern "C" fn(a: *mut AllocatorI, ta: *mut TempAllocatorI)>
§frame_alloc: Option<unsafe extern "C" fn(size: u64) -> *mut c_void>
§frame_allocator: Option<unsafe extern "C" fn() -> *mut AllocatorI>
§tick_frame: Option<unsafe extern "C" fn()>
§printf: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, format: *const c_char, ...) -> *mut c_char>
§vprintf: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI, format: *const c_char, args: va_list) -> *mut c_char>
§frame_printf: Option<unsafe extern "C" fn(format: *const c_char, ...) -> *mut c_char>
§frame_vprintf: Option<unsafe extern "C" fn(format: *const c_char, args: va_list) -> *mut c_char>
§statistics: *mut TempAllocatorStatisticsT
Implementations§
Source§impl TempAllocatorApi
impl TempAllocatorApi
pub unsafe fn create(&self, backing: *mut AllocatorI) -> *mut TempAllocatorI
pub unsafe fn create_in_buffer( &self, buffer: *mut c_char, size: u64, backing: *mut AllocatorI, ) -> *mut TempAllocatorI
pub unsafe fn destroy(&self, ta: *mut TempAllocatorI)
pub unsafe fn allocator(&self, a: *mut AllocatorI, ta: *mut TempAllocatorI)
pub unsafe fn frame_alloc(&self, size: u64) -> *mut c_void
pub unsafe fn frame_allocator(&self) -> *mut AllocatorI
pub unsafe fn tick_frame(&self)
pub unsafe fn printf( &self, ta: *mut TempAllocatorI, format: *const c_char, ) -> *mut c_char
pub unsafe fn vprintf( &self, ta: *mut TempAllocatorI, format: *const c_char, args: va_list, ) -> *mut c_char
pub unsafe fn frame_printf(&self, format: *const c_char) -> *mut c_char
pub unsafe fn frame_vprintf( &self, format: *const c_char, args: va_list, ) -> *mut c_char
Trait Implementations§
Source§impl Clone for TempAllocatorApi
impl Clone for TempAllocatorApi
Source§fn clone(&self) -> TempAllocatorApi
fn clone(&self) -> TempAllocatorApi
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 TempAllocatorApi
impl Default for TempAllocatorApi
impl Copy for TempAllocatorApi
Auto Trait Implementations§
impl Freeze for TempAllocatorApi
impl RefUnwindSafe for TempAllocatorApi
impl !Send for TempAllocatorApi
impl !Sync for TempAllocatorApi
impl Unpin for TempAllocatorApi
impl UnwindSafe for TempAllocatorApi
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