#[repr(u8)]pub enum ColourSpace {
Rgb = 0,
Grey = 1,
Xyb = 2,
Unknown = 3,
}
Expand description
Color space type.
Variants§
Rgb = 0
Tristimulus RGB.
This includes CMYK; in that case, there is an extra channel of type Black
, ICC profile is
embedded in the image, and the profile describes an CMYK color space.
Grey = 1
Grayscale; luminance only.
Xyb = 2
XYB, an absolute color space.
Unknown = 3
Unknown color space.
Trait Implementations§
source§impl Clone for ColourSpace
impl Clone for ColourSpace
source§fn clone(&self) -> ColourSpace
fn clone(&self) -> ColourSpace
Returns a copy 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 moresource§impl Debug for ColourSpace
impl Debug for ColourSpace
source§impl Default for ColourSpace
impl Default for ColourSpace
source§fn default() -> ColourSpace
fn default() -> ColourSpace
Returns the “default value” for a type. Read more
source§impl PartialEq for ColourSpace
impl PartialEq for ColourSpace
source§impl TryFrom<u32> for ColourSpace
impl TryFrom<u32> for ColourSpace
impl Copy for ColourSpace
impl Eq for ColourSpace
impl StructuralPartialEq for ColourSpace
Auto Trait Implementations§
impl Freeze for ColourSpace
impl RefUnwindSafe for ColourSpace
impl Send for ColourSpace
impl Sync for ColourSpace
impl Unpin for ColourSpace
impl UnwindSafe for ColourSpace
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
source§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)