Enum arqoii_types::QoiChunk
source · pub enum QoiChunk {
Rgb {
r: u8,
g: u8,
b: u8,
},
Rgba {
r: u8,
g: u8,
b: u8,
a: u8,
},
Index {
idx: u8,
},
Diff {
dr: i8,
dg: i8,
db: i8,
},
Luma {
dg: i8,
dr_dg: i8,
db_dg: i8,
},
Run {
run: u8,
},
}
Expand description
An individual Chunk, representing between 1 and 62 pixel
Variants§
Rgb
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Rgba
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Index
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Diff
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Luma
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Run
Implementations§
Trait Implementations§
source§impl IntoIterator for QoiChunk
impl IntoIterator for QoiChunk
source§impl PartialEq for QoiChunk
impl PartialEq for QoiChunk
impl Eq for QoiChunk
impl StructuralPartialEq for QoiChunk
Auto Trait Implementations§
impl RefUnwindSafe for QoiChunk
impl Send for QoiChunk
impl Sync for QoiChunk
impl Unpin for QoiChunk
impl UnwindSafe for QoiChunk
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