#[repr(C)]pub struct JxlMemoryManagerStruct {
pub opaque: *mut c_void,
pub alloc: jpegxl_alloc_func,
pub free: jpegxl_free_func,
}Expand description
Memory Manager struct. These functions, when provided by the caller, will be used to handle memory allocations.
Fields§
§opaque: *mut c_voidThe opaque pointer that will be passed as the first parameter to all the functions in this struct.
alloc: jpegxl_alloc_funcMemory allocation function. This can be NULL if and only if also the free() member in this class is NULL. All dynamic memory will be allocated and freed with these functions if they are not NULL, otherwise with the standard malloc/free.
free: jpegxl_free_funcFree function matching the alloc() member.
Trait Implementations§
Source§impl Clone for JxlMemoryManagerStruct
impl Clone for JxlMemoryManagerStruct
Source§fn clone(&self) -> JxlMemoryManagerStruct
fn clone(&self) -> JxlMemoryManagerStruct
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 JxlMemoryManagerStruct
impl Debug for JxlMemoryManagerStruct
Source§impl Default for JxlMemoryManagerStruct
impl Default for JxlMemoryManagerStruct
impl Copy for JxlMemoryManagerStruct
Auto Trait Implementations§
impl Freeze for JxlMemoryManagerStruct
impl RefUnwindSafe for JxlMemoryManagerStruct
impl !Send for JxlMemoryManagerStruct
impl !Sync for JxlMemoryManagerStruct
impl Unpin for JxlMemoryManagerStruct
impl UnsafeUnpin for JxlMemoryManagerStruct
impl UnwindSafe for JxlMemoryManagerStruct
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