Enum lightningcss::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§
Trait Implementations§
source§impl Clone for FloatColor
impl Clone for FloatColor
source§fn clone(&self) -> FloatColor
fn clone(&self) -> FloatColor
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 FloatColor
impl Debug for FloatColor
source§impl From<FloatColor> for A98
impl From<FloatColor> for A98
source§fn from(color: FloatColor) -> A98
fn from(color: FloatColor) -> A98
Converts to this type from the input type.
source§impl From<FloatColor> for HSL
impl From<FloatColor> for HSL
source§fn from(color: FloatColor) -> HSL
fn from(color: FloatColor) -> HSL
Converts to this type from the input type.
source§impl From<FloatColor> for HWB
impl From<FloatColor> for HWB
source§fn from(color: FloatColor) -> HWB
fn from(color: FloatColor) -> HWB
Converts to this type from the input type.
source§impl From<FloatColor> for LAB
impl From<FloatColor> for LAB
source§fn from(color: FloatColor) -> LAB
fn from(color: FloatColor) -> LAB
Converts to this type from the input type.
source§impl From<FloatColor> for LCH
impl From<FloatColor> for LCH
source§fn from(color: FloatColor) -> LCH
fn from(color: FloatColor) -> LCH
Converts to this type from the input type.
source§impl From<FloatColor> for OKLAB
impl From<FloatColor> for OKLAB
source§fn from(color: FloatColor) -> OKLAB
fn from(color: FloatColor) -> OKLAB
Converts to this type from the input type.
source§impl From<FloatColor> for OKLCH
impl From<FloatColor> for OKLCH
source§fn from(color: FloatColor) -> OKLCH
fn from(color: FloatColor) -> OKLCH
Converts to this type from the input type.
source§impl From<FloatColor> for P3
impl From<FloatColor> for P3
source§fn from(color: FloatColor) -> P3
fn from(color: FloatColor) -> P3
Converts to this type from the input type.
source§impl From<FloatColor> for ProPhoto
impl From<FloatColor> for ProPhoto
source§fn from(color: FloatColor) -> ProPhoto
fn from(color: FloatColor) -> ProPhoto
Converts to this type from the input type.
source§impl From<FloatColor> for RGBA
impl From<FloatColor> for RGBA
source§fn from(color: FloatColor) -> RGBA
fn from(color: FloatColor) -> RGBA
Converts to this type from the input type.
source§impl From<FloatColor> for Rec2020
impl From<FloatColor> for Rec2020
source§fn from(color: FloatColor) -> Rec2020
fn from(color: FloatColor) -> Rec2020
Converts to this type from the input type.
source§impl From<FloatColor> for SRGB
impl From<FloatColor> for SRGB
source§fn from(color: FloatColor) -> SRGB
fn from(color: FloatColor) -> SRGB
Converts to this type from the input type.
source§impl From<FloatColor> for SRGBLinear
impl From<FloatColor> for SRGBLinear
source§fn from(color: FloatColor) -> SRGBLinear
fn from(color: FloatColor) -> SRGBLinear
Converts to this type from the input type.
source§impl From<FloatColor> for XYZd50
impl From<FloatColor> for XYZd50
source§fn from(color: FloatColor) -> XYZd50
fn from(color: FloatColor) -> XYZd50
Converts to this type from the input type.
source§impl From<FloatColor> for XYZd65
impl From<FloatColor> for XYZd65
source§fn from(color: FloatColor) -> XYZd65
fn from(color: FloatColor) -> XYZd65
Converts to this type from the input type.
source§impl PartialEq<FloatColor> for FloatColor
impl PartialEq<FloatColor> for FloatColor
source§fn eq(&self, other: &FloatColor) -> bool
fn eq(&self, other: &FloatColor) -> bool
source§impl<'i, __T: Visit<'i, __T, __V>, __V: Visitor<'i, __T>> Visit<'i, __T, __V> for FloatColor
impl<'i, __T: Visit<'i, __T, __V>, __V: Visitor<'i, __T>> Visit<'i, __T, __V> for FloatColor
source§const CHILD_TYPES: VisitTypes = _
const CHILD_TYPES: VisitTypes = _
The types of values contained within this value and its children.
This is used to skip branches that don’t have any values requested
by the Visitor. Read more
source§fn visit_children(&mut self, visitor: &mut __V)
fn visit_children(&mut self, visitor: &mut __V)
Visit the children of this value.
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.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer