#[non_exhaustive]pub enum Colorspace {
Grayscale,
YCbCr,
Rgb,
Cmyk,
Ycck,
SRgb,
SGray,
IccTagged,
Rct,
Ict,
}Expand description
Color interpretation of decoded samples.
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.
Grayscale
Single-channel grayscale.
YCbCr
JPEG-style luma/chroma color.
Rgb
Red, green, blue color.
Cmyk
Cyan, magenta, yellow, black color.
Ycck
Luma/chroma plus black color.
SRgb
Standard RGB color.
SGray
Standard grayscale color.
IccTagged
Color described by an embedded ICC profile.
Rct
JPEG 2000 reversible color transform.
Ict
JPEG 2000 irreversible color transform.
Trait Implementations§
Source§impl Clone for Colorspace
impl Clone for Colorspace
Source§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
Source§impl Debug for Colorspace
impl Debug for Colorspace
impl Eq for Colorspace
Source§impl PartialEq for Colorspace
impl PartialEq for Colorspace
Source§fn eq(&self, other: &Colorspace) -> bool
fn eq(&self, other: &Colorspace) -> bool
Tests for
self and other values to be equal, and is used by ==.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