[][src]Struct pgx_pg_sys::MemoryContextMethods

#[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)>,
    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)>check: Option<unsafe extern "C" fn(context: MemoryContext)>

Trait Implementations

impl Clone for MemoryContextMethods[src]

impl Copy for MemoryContextMethods[src]

impl Debug for MemoryContextMethods[src]

impl Default for MemoryContextMethods[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.