Enum Colorspace
#[repr(u8)]pub enum Colorspace {
Grayscale = 0,
Yuv = 1,
Rgb = 2,
Cmyk = 3,
}Variants§
Grayscale = 0
Grayscale (1 quantization table)
Yuv = 1
YUV (2 quantization tables)
Rgb = 2
RGB (3 quantization tables)
Cmyk = 3
CMYK (4 quantization tables)
Implementations§
§impl Colorspace
impl Colorspace
pub const fn from_bits(val: u8) -> Colorspace
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Colorspace
impl Clone for Colorspace
§fn clone(&self) -> Colorspace
fn clone(&self) -> Colorspace
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 Colorspace
impl Eq for Colorspace
§impl From<Colorspace> for u8
impl From<Colorspace> for u8
§fn from(val: Colorspace) -> u8
fn from(val: Colorspace) -> u8
Converts to this type from the input type.
§impl From<u8> for Colorspace
impl From<u8> for Colorspace
§fn from(val: u8) -> Colorspace
fn from(val: u8) -> Colorspace
Converts to this type from the input type.
§impl Ord for Colorspace
impl Ord for Colorspace
§fn cmp(&self, other: &Colorspace) -> Ordering
fn cmp(&self, other: &Colorspace) -> Ordering
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
§impl PartialEq for Colorspace
impl PartialEq for Colorspace
§impl PartialOrd for Colorspace
impl PartialOrd for Colorspace
impl StructuralPartialEq for Colorspace
Auto Trait Implementations§
impl Freeze for Colorspace
impl RefUnwindSafe for Colorspace
impl Send for Colorspace
impl Sync for Colorspace
impl Unpin for Colorspace
impl UnsafeUnpin for Colorspace
impl UnwindSafe for Colorspace
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