#[non_exhaustive]pub enum ColorModel {
Srgb,
}Expand description
The color model a descriptor’s samples are interpreted in.
Samples are sRGB once opened: an embedded ICC profile is converted on open or carried beside the pixels (SPEC §Pixel formats, ADR-0015). The enum exists so that other working spaces are an added variant rather than a breaking descriptor change.
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.
Srgb
sRGB primaries and transfer function; the v1 assumption for all input.
Trait Implementations§
Source§impl Clone for ColorModel
impl Clone for ColorModel
Source§fn clone(&self) -> ColorModel
fn clone(&self) -> ColorModel
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 ColorModel
Source§impl Debug for ColorModel
impl Debug for ColorModel
Source§impl Default for ColorModel
impl Default for ColorModel
Source§fn default() -> ColorModel
fn default() -> ColorModel
Returns the “default value” for a type. Read more
impl Eq for ColorModel
Source§impl Hash for ColorModel
impl Hash for ColorModel
Source§impl PartialEq for ColorModel
impl PartialEq for ColorModel
impl StructuralPartialEq for ColorModel
Auto Trait Implementations§
impl Freeze for ColorModel
impl RefUnwindSafe for ColorModel
impl Send for ColorModel
impl Sync for ColorModel
impl Unpin for ColorModel
impl UnsafeUnpin for ColorModel
impl UnwindSafe for ColorModel
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