[][src]Struct tm_rs::ffi::tm_memory_tracker_api

#[repr(C)]pub struct tm_memory_tracker_api {
    pub check_for_leaked_scopes: Option<unsafe extern "C" fn()>,
    pub create_scope: Option<unsafe extern "C" fn(*const i8, u32) -> u32>,
    pub destroy_scope: Option<unsafe extern "C" fn(u32)>,
    pub destroy_scope_allowing_leaks: Option<unsafe extern "C" fn(u32, u64)>,
    pub record_realloc: Option<unsafe extern "C" fn(*mut c_void, u64, *mut c_void, u64, *const i8, u32, u32)>,
    pub allocated_bytes: Option<unsafe extern "C" fn(u32) -> u64>,
    pub allocation_count: Option<unsafe extern "C" fn(u32) -> u64>,
    pub set_scope_tracing: Option<unsafe extern "C" fn(u32, bool)>,
    pub scope_data_snapshot: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i) -> *mut tm_memory_tracker_scope_data_t>,
    pub trace_data_snapshot: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i) -> *mut tm_memory_tracker_trace_data_t>,
}

Fields

check_for_leaked_scopes: Option<unsafe extern "C" fn()>create_scope: Option<unsafe extern "C" fn(*const i8, u32) -> u32>destroy_scope: Option<unsafe extern "C" fn(u32)>destroy_scope_allowing_leaks: Option<unsafe extern "C" fn(u32, u64)>record_realloc: Option<unsafe extern "C" fn(*mut c_void, u64, *mut c_void, u64, *const i8, u32, u32)>allocated_bytes: Option<unsafe extern "C" fn(u32) -> u64>allocation_count: Option<unsafe extern "C" fn(u32) -> u64>set_scope_tracing: Option<unsafe extern "C" fn(u32, bool)>scope_data_snapshot: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i) -> *mut tm_memory_tracker_scope_data_t>trace_data_snapshot: Option<unsafe extern "C" fn(*mut tm_temp_allocator_i) -> *mut tm_memory_tracker_trace_data_t>

Trait Implementations

impl Clone for tm_memory_tracker_api[src]

impl Copy for tm_memory_tracker_api[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[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.