pub struct Illuminant {
pub name: &'static str,
pub exif_code: u16,
pub cct: u32,
pub x: f64,
pub y: f64,
}Expand description
Standard illuminant specification.
Fields§
§name: &'static strHuman-readable name
exif_code: u16EXIF LightSource tag value
cct: u32Correlated Color Temperature in Kelvin
x: f64CIE 1931 chromaticity x coordinate
y: f64CIE 1931 chromaticity y coordinate
Implementations§
Trait Implementations§
Source§impl Clone for Illuminant
impl Clone for Illuminant
Source§fn clone(&self) -> Illuminant
fn clone(&self) -> Illuminant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Illuminant
impl Debug for Illuminant
impl Copy for Illuminant
Auto Trait Implementations§
impl Freeze for Illuminant
impl RefUnwindSafe for Illuminant
impl Send for Illuminant
impl Sync for Illuminant
impl Unpin for Illuminant
impl UnsafeUnpin for Illuminant
impl UnwindSafe for Illuminant
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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