pub enum PixelData {
Native {
bytes: Vec<u8>,
},
Encapsulated {
offset_table: Vec<u32>,
fragments: Vec<Vec<u8>>,
},
}Expand description
Pixel data stored either as native (uncompressed) bytes or encapsulated (compressed) fragments.
Variants§
Native
Uncompressed pixel data.
Encapsulated
Encapsulated (compressed) pixel data with optional offset table.
Implementations§
Trait Implementations§
impl StructuralPartialEq for PixelData
Auto Trait Implementations§
impl Freeze for PixelData
impl RefUnwindSafe for PixelData
impl Send for PixelData
impl Sync for PixelData
impl Unpin for PixelData
impl UnsafeUnpin for PixelData
impl UnwindSafe for PixelData
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