Struct python3_sys::PyMemAllocatorEx
[−]
[src]
#[repr(C)]pub struct PyMemAllocatorEx { pub ctx: *mut c_void, pub malloc: Option<extern "C" fn(_: *mut c_void, _: size_t) -> *mut c_void>, pub calloc: Option<extern "C" fn(_: *mut c_void, _: size_t, _: size_t) -> *mut c_void>, pub realloc: Option<extern "C" fn(_: *mut c_void, _: *mut c_void, _: size_t) -> *mut c_void>, pub free: Option<extern "C" fn(_: *mut c_void, _: *mut c_void)>, }
Fields
ctx: *mut c_void
malloc: Option<extern "C" fn(_: *mut c_void, _: size_t) -> *mut c_void>
calloc: Option<extern "C" fn(_: *mut c_void, _: size_t, _: size_t) -> *mut c_void>
realloc: Option<extern "C" fn(_: *mut c_void, _: *mut c_void, _: size_t) -> *mut c_void>
free: Option<extern "C" fn(_: *mut c_void, _: *mut c_void)>
Trait Implementations
impl Copy for PyMemAllocatorEx
[src]
impl Clone for PyMemAllocatorEx
[src]
fn clone(&self) -> PyMemAllocatorEx
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more