pub struct Header {
pub height: u32,
pub width: u32,
pub channel_count: u8,
pub color_space: u8,
}Expand description
A QOI header, storing all the metadata
Fields§
§height: u32big endian
width: u32big endian
channel_count: u83 = RGB 4 = RGBA
color_space: u80 = SRGB 1 = SRGB - linear alpha 3 = linear all
Trait Implementations§
impl Copy for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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