Struct python3_sys::PyMemAllocator
[−]
[src]
pub struct PyMemAllocator {
pub ctx: *mut c_void,
pub malloc: Option<extern fn(ctx: *mut c_void, size: size_t) -> *mut c_void>,
pub realloc: Option<extern fn(ctx: *mut c_void, ptr: *mut c_void, new_size: size_t) -> *mut c_void>,
pub free: Option<extern fn(ctx: *mut c_void, ptr: *mut c_void)>,
}Fields
ctx: *mut c_void
malloc: Option<extern fn(ctx: *mut c_void, size: size_t) -> *mut c_void>
realloc: Option<extern fn(ctx: *mut c_void, ptr: *mut c_void, new_size: size_t) -> *mut c_void>
free: Option<extern fn(ctx: *mut c_void, ptr: *mut c_void)>
Trait Implementations
impl Clone for PyMemAllocator[src]
fn clone(&self) -> PyMemAllocator
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