[][src]Trait jpegxl_sys::NewUninit

pub trait NewUninit {
    fn new_uninit() -> MaybeUninit<Self>
    where
        Self: Sized
, { ... } }

Convinient function to just return a block of memory. You need to assign basic_info.assume_init() to use as a Rust struct after passing as a pointer.

Examples:

This example is not tested
let mut basic_info = JpegxlBasicInfo::new_uninit();
JpegxlDecoderGetBasicInfo(decoder, basic_info.as_mut_ptr());
let basic_info = basic_info.assumu_init();

Provided methods

fn new_uninit() -> MaybeUninit<Self> where
    Self: Sized

Loading content...

Implementors

impl NewUninit for JpegxlBasicInfo[src]

impl NewUninit for JpegxlColorEncoding[src]

impl NewUninit for JpegxlColorProfileSource[src]

impl NewUninit for JpegxlExtraChannelInfo[src]

impl NewUninit for JpegxlPixelFormat[src]

impl NewUninit for JpegxlPreviewHeader[src]

Loading content...