[−][src]Trait jpegxl_sys::NewUninit
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,
Self: Sized,