#[non_exhaustive]pub enum ColorSpace {
Undefined,
YCbCr(Chroma),
Rgb(RgbChroma),
Monochrome,
NonVisual,
Custom,
FilterArray,
}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.
Undefined
YCbCr(Chroma)
Rgb(RgbChroma)
Monochrome
NonVisual
👎Deprecated since 2.8.0:
use ColorSpace::Custom instead.
Available on crate feature
v1_19 only.Indicates that this image has a special, custom arrangement of components. For example, it can have several monochrome channels or just a depth component with no color image. Images of this type are always planar.
Custom
Available on crate feature
v1_23 only.Indicates that this image has a special, custom arrangement of components. For example, it can have several monochrome channels or just a depth component with no color image. Images of this type are always planar.
FilterArray
Available on crate feature
v1_23 only.Images of this type are filter-array (CFA / Bayer) mosaics. The single mosaicked plane is described as Monochrome.
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 Hash for ColorSpace
impl Hash for ColorSpace
Source§impl PartialEq for ColorSpace
impl PartialEq 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