Struct mupdf_sys::fz_alloc_context [−][src]
#[repr(C)]pub struct fz_alloc_context { pub user: *mut c_void, pub malloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: usize) -> *mut c_void>, pub realloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void, arg3: usize) -> *mut c_void>, pub free: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void)>, }
Expand description
Allocator structure; holds callbacks and private data pointer.
Fields
user: *mut c_void
malloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: usize) -> *mut c_void>
realloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void, arg3: usize) -> *mut c_void>
free: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut c_void)>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for fz_alloc_context
impl !Send for fz_alloc_context
impl !Sync for fz_alloc_context
impl Unpin for fz_alloc_context
impl UnwindSafe for fz_alloc_context
Blanket Implementations
Mutably borrows from an owned value. Read more