#[repr(u8)]pub enum DataType {
Undefined = 0,
RGB = 1,
HSL = 2,
RGBW = 3,
Grayscale = 4,
}Expand description
Pixel data type (color space).
Defines how pixel color values should be interpreted.
Variants§
Undefined = 0
Undefined or custom data type
RGB = 1
Red, Green, Blue
HSL = 2
Hue, Saturation, Lightness
RGBW = 3
Red, Green, Blue, White
Grayscale = 4
Grayscale/monochrome
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
Source§impl Ord for DataType
impl Ord for DataType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for DataType
impl PartialOrd for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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