[][src]Struct postgres_parser::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)>,
}

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)>

Trait Implementations

impl Debug for MemoryContextMethods[src]

impl Default for MemoryContextMethods[src]

impl Eq for MemoryContextMethods[src]

impl Hash for MemoryContextMethods[src]

impl PartialEq<MemoryContextMethods> for MemoryContextMethods[src]

impl StructuralEq for MemoryContextMethods[src]

impl StructuralPartialEq 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, 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.