Enum parcel_css::values::color::FloatColor
source · [−]Expand description
A floating point representation of color types that
are usually stored as RGBA. These are used when there
are any none
components, which are represented as NaN.
Variants
RGB(SRGB)
An RGB color.
HSL(HSL)
An HSL color.
HWB(HWB)
An HWB color.
Trait Implementations
sourceimpl Clone for FloatColor
impl Clone for FloatColor
sourcefn clone(&self) -> FloatColor
fn clone(&self) -> FloatColor
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 FloatColor
impl Debug for FloatColor
sourceimpl From<FloatColor> for LAB
impl From<FloatColor> for LAB
sourcefn from(color: FloatColor) -> LAB
fn from(color: FloatColor) -> LAB
Converts to this type from the input type.
sourceimpl From<FloatColor> for LCH
impl From<FloatColor> for LCH
sourcefn from(color: FloatColor) -> LCH
fn from(color: FloatColor) -> LCH
Converts to this type from the input type.
sourceimpl From<FloatColor> for ProPhoto
impl From<FloatColor> for ProPhoto
sourcefn from(color: FloatColor) -> ProPhoto
fn from(color: FloatColor) -> ProPhoto
Converts to this type from the input type.
sourceimpl From<FloatColor> for Rec2020
impl From<FloatColor> for Rec2020
sourcefn from(color: FloatColor) -> Rec2020
fn from(color: FloatColor) -> Rec2020
Converts to this type from the input type.
sourceimpl From<FloatColor> for HSL
impl From<FloatColor> for HSL
sourcefn from(color: FloatColor) -> HSL
fn from(color: FloatColor) -> HSL
Converts to this type from the input type.
sourceimpl From<FloatColor> for HWB
impl From<FloatColor> for HWB
sourcefn from(color: FloatColor) -> HWB
fn from(color: FloatColor) -> HWB
Converts to this type from the input type.
sourceimpl From<FloatColor> for RGBA
impl From<FloatColor> for RGBA
sourcefn from(color: FloatColor) -> RGBA
fn from(color: FloatColor) -> RGBA
Converts to this type from the input type.
sourceimpl From<FloatColor> for OKLAB
impl From<FloatColor> for OKLAB
sourcefn from(color: FloatColor) -> OKLAB
fn from(color: FloatColor) -> OKLAB
Converts to this type from the input type.
sourceimpl From<FloatColor> for OKLCH
impl From<FloatColor> for OKLCH
sourcefn from(color: FloatColor) -> OKLCH
fn from(color: FloatColor) -> OKLCH
Converts to this type from the input type.
sourceimpl From<FloatColor> for SRGB
impl From<FloatColor> for SRGB
sourcefn from(color: FloatColor) -> SRGB
fn from(color: FloatColor) -> SRGB
Converts to this type from the input type.
sourceimpl From<FloatColor> for SRGBLinear
impl From<FloatColor> for SRGBLinear
sourcefn from(color: FloatColor) -> SRGBLinear
fn from(color: FloatColor) -> SRGBLinear
Converts to this type from the input type.
sourceimpl From<FloatColor> for XYZd50
impl From<FloatColor> for XYZd50
sourcefn from(color: FloatColor) -> XYZd50
fn from(color: FloatColor) -> XYZd50
Converts to this type from the input type.
sourceimpl From<FloatColor> for XYZd65
impl From<FloatColor> for XYZd65
sourcefn from(color: FloatColor) -> XYZd65
fn from(color: FloatColor) -> XYZd65
Converts to this type from the input type.
sourceimpl From<FloatColor> for P3
impl From<FloatColor> for P3
sourcefn from(color: FloatColor) -> P3
fn from(color: FloatColor) -> P3
Converts to this type from the input type.
sourceimpl From<FloatColor> for A98
impl From<FloatColor> for A98
sourcefn from(color: FloatColor) -> A98
fn from(color: FloatColor) -> A98
Converts to this type from the input type.
sourceimpl PartialEq<FloatColor> for FloatColor
impl PartialEq<FloatColor> for FloatColor
sourcefn eq(&self, other: &FloatColor) -> bool
fn eq(&self, other: &FloatColor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FloatColor) -> bool
fn ne(&self, other: &FloatColor) -> bool
This method tests for !=
.
impl Copy for FloatColor
impl StructuralPartialEq for FloatColor
Auto Trait Implementations
impl RefUnwindSafe for FloatColor
impl Send for FloatColor
impl Sync for FloatColor
impl Unpin for FloatColor
impl UnwindSafe for FloatColor
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