[][src]Struct tm_sys::ffi::tm_temp_allocator_api

#[repr(C)]pub struct tm_temp_allocator_api {
    pub init_1024: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_1024_o, backing: *mut tm_allocator_i)>,
    pub shutdown_1024: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_1024_o)>,
    pub create: Option<unsafe extern "C" fn(backing: *mut tm_allocator_i) -> *mut tm_temp_allocator_i>,
    pub destroy: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i)>,
    pub allocator: Option<unsafe extern "C" fn(a: *mut tm_allocator_i, ta: *mut tm_temp_allocator_i)>,
    pub frame_alloc: Option<unsafe extern "C" fn(size: 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(ta: *mut tm_temp_allocator_i, format: *const c_char, args: va_list) -> *mut c_char>,
    pub printf: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i, 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 frame_printf: Option<unsafe extern "C" fn(format: *const c_char, ...) -> *mut c_char>,
    pub statistics: *mut tm_temp_allocator_statistics_t,
}

Fields

init_1024: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_1024_o, backing: *mut tm_allocator_i)>shutdown_1024: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_1024_o)>create: Option<unsafe extern "C" fn(backing: *mut tm_allocator_i) -> *mut tm_temp_allocator_i>destroy: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i)>allocator: Option<unsafe extern "C" fn(a: *mut tm_allocator_i, ta: *mut tm_temp_allocator_i)>frame_alloc: Option<unsafe extern "C" fn(size: 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(ta: *mut tm_temp_allocator_i, format: *const c_char, args: va_list) -> *mut c_char>printf: Option<unsafe extern "C" fn(ta: *mut tm_temp_allocator_i, format: *const c_char, ...) -> *mut c_char>frame_vprintf: Option<unsafe extern "C" fn(format: *const c_char, args: va_list) -> *mut c_char>frame_printf: Option<unsafe extern "C" fn(format: *const c_char, ...) -> *mut c_char>statistics: *mut tm_temp_allocator_statistics_t

Trait Implementations

impl Clone for tm_temp_allocator_api[src]

impl Copy for tm_temp_allocator_api[src]

impl Debug for tm_temp_allocator_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.