#[repr(C)]pub struct SysImage {
pub width: u32,
pub height: u32,
pub data: *mut u8,
pub data_len: usize,
}Expand description
Result of decoding an image.
The data buffer must be allocated through the allocator provided to
the decode callback. The library takes ownership and will free it
with the same allocator.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
data: *mut u8Pointer to the decoded RGBA pixel data.
data_len: usizeLength of the pixel data in bytes.
Trait Implementations§
Auto Trait Implementations§
impl !Send for SysImage
impl !Sync for SysImage
impl Freeze for SysImage
impl RefUnwindSafe for SysImage
impl Unpin for SysImage
impl UnsafeUnpin for SysImage
impl UnwindSafe for SysImage
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