Struct libjxl_sys::JxlMemoryManagerStruct [−][src]
#[repr(C)]pub struct JxlMemoryManagerStruct { pub opaque: *mut c_void, pub alloc: jpegxl_alloc_func, pub free: jpegxl_free_func, }
Memory Manager struct. These functions, when provided by the caller, will be used to handle memory allocations.
Fields
opaque: *mut c_void
The opaque pointer that will be passed as the first parameter to all the functions in this struct.
alloc: jpegxl_alloc_func
Memory 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.
free: jpegxl_free_func
Free function matching the alloc() member.
Trait Implementations
impl Clone for JxlMemoryManagerStruct
[src]
impl Clone for JxlMemoryManagerStruct
[src]fn clone(&self) -> JxlMemoryManagerStruct
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for JxlMemoryManagerStruct
[src]
impl Copy for JxlMemoryManagerStruct
[src]impl Default for JxlMemoryManagerStruct
[src]
impl Default for JxlMemoryManagerStruct
[src]Auto Trait Implementations
impl RefUnwindSafe for JxlMemoryManagerStruct
impl RefUnwindSafe for JxlMemoryManagerStruct
impl !Send for JxlMemoryManagerStruct
impl !Send for JxlMemoryManagerStruct
impl !Sync for JxlMemoryManagerStruct
impl !Sync for JxlMemoryManagerStruct
impl Unpin for JxlMemoryManagerStruct
impl Unpin for JxlMemoryManagerStruct
impl UnwindSafe for JxlMemoryManagerStruct
impl UnwindSafe for JxlMemoryManagerStruct