pub struct Indexed8;Expand description
8-bit palette indices: one index byte per pixel into a separate colour table. Distinct from
Gray8 so indices cannot be mistaken for luminance.
Trait Implementations§
impl Copy for Indexed8
impl Eq for Indexed8
Source§impl Pixel for Indexed8
impl Pixel for Indexed8
Source§const MODEL: ColorModel = ColorModel::Indexed
const MODEL: ColorModel = ColorModel::Indexed
The colour interpretation of those samples.
Source§const BYTES_PER_PIXEL: usize = _
const BYTES_PER_PIXEL: usize = _
Bytes one pixel occupies in an interleaved buffer (
CHANNELS * size_of::<Sample>()).impl StructuralPartialEq for Indexed8
Auto Trait Implementations§
impl Freeze for Indexed8
impl RefUnwindSafe for Indexed8
impl Send for Indexed8
impl Sync for Indexed8
impl Unpin for Indexed8
impl UnsafeUnpin for Indexed8
impl UnwindSafe for Indexed8
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