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 Copy for JxlMemoryManagerStruct[src]

impl Debug for JxlMemoryManagerStruct[src]

impl Default for JxlMemoryManagerStruct[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.