#[non_exhaustive]pub enum PixelLayout {
Rgb,
Rgba,
Gray,
}Expand description
Channel layout independent of sample width.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rgb
Three-channel red, green, blue layout.
Rgba
Four-channel red, green, blue, alpha layout.
Gray
Single-channel grayscale layout.
Trait Implementations§
Source§impl Clone for PixelLayout
impl Clone for PixelLayout
Source§fn clone(&self) -> PixelLayout
fn clone(&self) -> PixelLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PixelLayout
Source§impl Debug for PixelLayout
impl Debug for PixelLayout
impl Eq for PixelLayout
Source§impl Hash for PixelLayout
impl Hash for PixelLayout
Source§impl PartialEq for PixelLayout
impl PartialEq for PixelLayout
Source§fn eq(&self, other: &PixelLayout) -> bool
fn eq(&self, other: &PixelLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PixelLayout
Auto Trait Implementations§
impl Freeze for PixelLayout
impl RefUnwindSafe for PixelLayout
impl Send for PixelLayout
impl Sync for PixelLayout
impl Unpin for PixelLayout
impl UnsafeUnpin for PixelLayout
impl UnwindSafe for PixelLayout
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