Expand description
A color in the display-p3
color space.
Fields
r: f32
The red component.
g: f32
The green component.
b: f32
The blue component.
alpha: f32
The alpha component.
Implementations
Trait Implementations
sourceimpl ColorGamut for P3
impl ColorGamut for P3
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<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<P3> for SRGBLinear
impl From<P3> for SRGBLinear
sourcefn from(t: P3) -> SRGBLinear
fn from(t: P3) -> SRGBLinear
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<SRGBLinear> for P3
impl From<SRGBLinear> for P3
sourcefn from(t: SRGBLinear) -> P3
fn from(t: SRGBLinear) -> P3
Converts to this type from the input type.
sourceimpl PartialEq<P3> for P3
impl PartialEq<P3> for P3
impl Copy for P3
impl StructuralPartialEq for P3
Auto Trait Implementations
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<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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