#[non_exhaustive]pub enum IccColorSpace {
Rgb,
Gray,
Cmyk,
Lab,
Xyz,
Ycbcr,
}Expand description
High-level data color space recorded in an ICC profile header (bytes 16..20).
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.
Implementations§
Source§impl IccColorSpace
impl IccColorSpace
Sourcepub fn from_icc(icc_bytes: &[u8]) -> Option<IccColorSpace>
pub fn from_icc(icc_bytes: &[u8]) -> Option<IccColorSpace>
Read the data color space from the ICC header, given at least 20 bytes.
Use ColorSpace::from_icc to validate a complete image profile.
Trait Implementations§
Source§impl Clone for IccColorSpace
impl Clone for IccColorSpace
Source§fn clone(&self) -> IccColorSpace
fn clone(&self) -> IccColorSpace
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 IccColorSpace
Source§impl Debug for IccColorSpace
impl Debug for IccColorSpace
impl Eq for IccColorSpace
Source§impl Hash for IccColorSpace
impl Hash for IccColorSpace
Source§impl PartialEq for IccColorSpace
impl PartialEq for IccColorSpace
impl StructuralPartialEq for IccColorSpace
Auto Trait Implementations§
impl Freeze for IccColorSpace
impl RefUnwindSafe for IccColorSpace
impl Send for IccColorSpace
impl Sync for IccColorSpace
impl Unpin for IccColorSpace
impl UnsafeUnpin for IccColorSpace
impl UnwindSafe for IccColorSpace
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