pub enum ColorSpace {
Gray,
RGB,
CMYK,
Unknown {
num_channels: u8,
},
Icc {
profile: Vec<u8>,
num_channels: u8,
},
}Expand description
The color space of the image.
Variants§
Gray
A grayscale image.
RGB
An RGB image.
CMYK
A CMYK image.
Unknown
An unknown color space.
Icc
An image based on an ICC profile.
Implementations§
Source§impl ColorSpace
impl ColorSpace
Sourcepub fn num_channels(&self) -> u8
pub fn num_channels(&self) -> u8
Return the number of expected channels for the color space.
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ColorSpace
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin 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