pub struct Rec2020 {
pub r: f32,
pub g: f32,
pub b: f32,
pub alpha: f32,
}Expand description
A color in the rec2020 color space.
Fields§
§r: f32The red component.
g: f32The green component.
b: f32The blue component.
alpha: f32The alpha component.
Implementations§
Trait Implementations§
Source§impl ColorGamut for Rec2020
impl ColorGamut for Rec2020
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<PredefinedColor> for Rec2020
impl From<PredefinedColor> for Rec2020
Source§fn from(color: PredefinedColor) -> Rec2020
fn from(color: PredefinedColor) -> Rec2020
Converts to this type from the input type.
Source§impl From<Rec2020> for PredefinedColor
impl From<Rec2020> for PredefinedColor
Source§fn from(color: Rec2020) -> PredefinedColor
fn from(color: Rec2020) -> PredefinedColor
Converts to this type from the input type.
Source§impl From<Rec2020> for SRGBLinear
impl From<Rec2020> for SRGBLinear
Source§fn from(t: Rec2020) -> SRGBLinear
fn from(t: Rec2020) -> SRGBLinear
Converts to this type from the input type.
Source§impl From<SRGBLinear> for Rec2020
impl From<SRGBLinear> for Rec2020
Source§fn from(t: SRGBLinear) -> Rec2020
fn from(t: SRGBLinear) -> Rec2020
Converts to this type from the input type.
impl Copy for Rec2020
impl StructuralPartialEq for Rec2020
Auto Trait Implementations§
impl Freeze for Rec2020
impl RefUnwindSafe for Rec2020
impl Send for Rec2020
impl Sync for Rec2020
impl Unpin for Rec2020
impl UnsafeUnpin for Rec2020
impl UnwindSafe for Rec2020
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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