pub struct DisplayChromaticity {
pub red: Option<[f32; 2]>,
pub green: Option<[f32; 2]>,
pub blue: Option<[f32; 2]>,
pub white: Option<[f32; 2]>,
}Expand description
CIE 1931 xy chromaticity of a display’s primaries and white point. Each
coordinate is [x, y]; a coordinate the platform omits is None.
Fields§
§red: Option<[f32; 2]>xy of the red primary.
green: Option<[f32; 2]>xy of the green primary.
blue: Option<[f32; 2]>xy of the blue primary.
white: Option<[f32; 2]>xy of the white point.
Trait Implementations§
Source§impl Clone for DisplayChromaticity
impl Clone for DisplayChromaticity
Source§fn clone(&self) -> DisplayChromaticity
fn clone(&self) -> DisplayChromaticity
Returns a duplicate 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 DisplayChromaticity
impl Debug for DisplayChromaticity
Source§impl Default for DisplayChromaticity
impl Default for DisplayChromaticity
Source§fn default() -> DisplayChromaticity
fn default() -> DisplayChromaticity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DisplayChromaticity
impl<'de> Deserialize<'de> for DisplayChromaticity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DisplayChromaticity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DisplayChromaticity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DisplayChromaticity
impl PartialEq for DisplayChromaticity
Source§impl Serialize for DisplayChromaticity
impl Serialize for DisplayChromaticity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for DisplayChromaticity
impl StructuralPartialEq for DisplayChromaticity
Auto Trait Implementations§
impl Freeze for DisplayChromaticity
impl RefUnwindSafe for DisplayChromaticity
impl Send for DisplayChromaticity
impl Sync for DisplayChromaticity
impl Unpin for DisplayChromaticity
impl UnwindSafe for DisplayChromaticity
Blanket Implementations§
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<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