Enum parcel_css::values::color::PredefinedColor
source · [−]pub enum PredefinedColor {
SRGB(SRGB),
SRGBLinear(SRGBLinear),
DisplayP3(P3),
A98(A98),
ProPhoto(ProPhoto),
Rec2020(Rec2020),
XYZd50(XYZd50),
XYZd65(XYZd65),
}
Expand description
A color in a predefined color space, e.g. display-p3
.
Variants
SRGB(SRGB)
A color in the srgb
color space.
SRGBLinear(SRGBLinear)
A color in the srgb-linear
color space.
DisplayP3(P3)
A color in the display-p3
color space.
A98(A98)
A color in the a98-rgb
color space.
ProPhoto(ProPhoto)
A color in the prophoto-rgb
color space.
Rec2020(Rec2020)
A color in the rec2020
color space.
XYZd50(XYZd50)
A color in the xyz-d50
color space.
XYZd65(XYZd65)
A color in the xyz-d65
color space.
Trait Implementations
sourceimpl Clone for PredefinedColor
impl Clone for PredefinedColor
sourcefn clone(&self) -> PredefinedColor
fn clone(&self) -> PredefinedColor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PredefinedColor
impl Debug for PredefinedColor
sourceimpl From<A98> for PredefinedColor
impl From<A98> for PredefinedColor
sourcefn from(color: A98) -> PredefinedColor
fn from(color: A98) -> PredefinedColor
Converts to this type from the input type.
sourceimpl From<P3> for PredefinedColor
impl From<P3> for PredefinedColor
sourcefn from(color: P3) -> PredefinedColor
fn from(color: P3) -> PredefinedColor
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for LAB
impl From<PredefinedColor> for LAB
sourcefn from(color: PredefinedColor) -> LAB
fn from(color: PredefinedColor) -> LAB
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for LCH
impl From<PredefinedColor> for LCH
sourcefn from(color: PredefinedColor) -> LCH
fn from(color: PredefinedColor) -> LCH
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for ProPhoto
impl From<PredefinedColor> for ProPhoto
sourcefn from(color: PredefinedColor) -> ProPhoto
fn from(color: PredefinedColor) -> ProPhoto
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for Rec2020
impl From<PredefinedColor> for Rec2020
sourcefn from(color: PredefinedColor) -> Rec2020
fn from(color: PredefinedColor) -> Rec2020
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for HSL
impl From<PredefinedColor> for HSL
sourcefn from(color: PredefinedColor) -> HSL
fn from(color: PredefinedColor) -> HSL
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for HWB
impl From<PredefinedColor> for HWB
sourcefn from(color: PredefinedColor) -> HWB
fn from(color: PredefinedColor) -> HWB
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for RGBA
impl From<PredefinedColor> for RGBA
sourcefn from(color: PredefinedColor) -> RGBA
fn from(color: PredefinedColor) -> RGBA
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for OKLAB
impl From<PredefinedColor> for OKLAB
sourcefn from(color: PredefinedColor) -> OKLAB
fn from(color: PredefinedColor) -> OKLAB
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for OKLCH
impl From<PredefinedColor> for OKLCH
sourcefn from(color: PredefinedColor) -> OKLCH
fn from(color: PredefinedColor) -> OKLCH
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for SRGB
impl From<PredefinedColor> for SRGB
sourcefn from(color: PredefinedColor) -> SRGB
fn from(color: PredefinedColor) -> SRGB
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for SRGBLinear
impl From<PredefinedColor> for SRGBLinear
sourcefn from(color: PredefinedColor) -> SRGBLinear
fn from(color: PredefinedColor) -> SRGBLinear
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for XYZd50
impl From<PredefinedColor> for XYZd50
sourcefn from(color: PredefinedColor) -> XYZd50
fn from(color: PredefinedColor) -> XYZd50
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for XYZd65
impl From<PredefinedColor> for XYZd65
sourcefn from(color: PredefinedColor) -> XYZd65
fn from(color: PredefinedColor) -> XYZd65
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for P3
impl From<PredefinedColor> for P3
sourcefn from(color: PredefinedColor) -> P3
fn from(color: PredefinedColor) -> P3
Converts to this type from the input type.
sourceimpl From<PredefinedColor> for A98
impl From<PredefinedColor> for A98
sourcefn from(color: PredefinedColor) -> A98
fn from(color: PredefinedColor) -> A98
Converts to this type from the input type.
sourceimpl From<ProPhoto> for PredefinedColor
impl From<ProPhoto> for PredefinedColor
sourcefn from(color: ProPhoto) -> PredefinedColor
fn from(color: ProPhoto) -> PredefinedColor
Converts to this type from the input type.
sourceimpl From<Rec2020> for PredefinedColor
impl From<Rec2020> for PredefinedColor
sourcefn from(color: Rec2020) -> PredefinedColor
fn from(color: Rec2020) -> PredefinedColor
Converts to this type from the input type.
sourceimpl From<SRGBLinear> for PredefinedColor
impl From<SRGBLinear> for PredefinedColor
sourcefn from(color: SRGBLinear) -> PredefinedColor
fn from(color: SRGBLinear) -> PredefinedColor
Converts to this type from the input type.
sourceimpl From<XYZd50> for PredefinedColor
impl From<XYZd50> for PredefinedColor
sourcefn from(color: XYZd50) -> PredefinedColor
fn from(color: XYZd50) -> PredefinedColor
Converts to this type from the input type.
sourceimpl From<XYZd65> for PredefinedColor
impl From<XYZd65> for PredefinedColor
sourcefn from(color: XYZd65) -> PredefinedColor
fn from(color: XYZd65) -> PredefinedColor
Converts to this type from the input type.
sourceimpl PartialEq<PredefinedColor> for PredefinedColor
impl PartialEq<PredefinedColor> for PredefinedColor
sourcefn eq(&self, other: &PredefinedColor) -> bool
fn eq(&self, other: &PredefinedColor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PredefinedColor) -> bool
fn ne(&self, other: &PredefinedColor) -> bool
This method tests for !=
.
impl Copy for PredefinedColor
impl StructuralPartialEq for PredefinedColor
Auto Trait Implementations
impl RefUnwindSafe for PredefinedColor
impl Send for PredefinedColor
impl Sync for PredefinedColor
impl Unpin for PredefinedColor
impl UnwindSafe for PredefinedColor
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more