#[repr(C)]
pub struct MemoryContextMethods { pub alloc: Option<unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut c_void>, pub free_p: Option<unsafe extern "C" fn(context: MemoryContext, pointer: *mut c_void)>, pub realloc: Option<unsafe extern "C" fn(context: MemoryContext, pointer: *mut c_void, size: Size) -> *mut c_void>, pub reset: Option<unsafe extern "C" fn(context: MemoryContext)>, pub delete_context: Option<unsafe extern "C" fn(context: MemoryContext)>, pub get_chunk_space: Option<unsafe extern "C" fn(context: MemoryContext, pointer: *mut c_void) -> Size>, pub is_empty: Option<unsafe extern "C" fn(context: MemoryContext) -> bool>, pub stats: Option<unsafe extern "C" fn(context: MemoryContext, printfunc: MemoryStatsPrintFunc, passthru: *mut c_void, totals: *mut MemoryContextCounters, print_to_stderr: bool)>, pub check: Option<unsafe extern "C" fn(context: MemoryContext)>, }

Fields

alloc: Option<unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut c_void>free_p: Option<unsafe extern "C" fn(context: MemoryContext, pointer: *mut c_void)>realloc: Option<unsafe extern "C" fn(context: MemoryContext, pointer: *mut c_void, size: Size) -> *mut c_void>reset: Option<unsafe extern "C" fn(context: MemoryContext)>delete_context: Option<unsafe extern "C" fn(context: MemoryContext)>get_chunk_space: Option<unsafe extern "C" fn(context: MemoryContext, pointer: *mut c_void) -> Size>is_empty: Option<unsafe extern "C" fn(context: MemoryContext) -> bool>stats: Option<unsafe extern "C" fn(context: MemoryContext, printfunc: MemoryStatsPrintFunc, passthru: *mut c_void, totals: *mut MemoryContextCounters, print_to_stderr: bool)>check: Option<unsafe extern "C" fn(context: MemoryContext)>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.