#[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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more