#[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§
Source§impl Clone for fz_alloc_context
impl Clone for fz_alloc_context
Source§fn clone(&self) -> fz_alloc_context
fn clone(&self) -> fz_alloc_context
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for fz_alloc_context
impl Debug for fz_alloc_context
impl Copy for fz_alloc_context
Auto Trait Implementations§
impl Freeze for fz_alloc_context
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more