[−][src]Struct colorspace::spd::SPD
A lightweight SPD using a fixed shape of 380-770nm with a 10nm interval. All tristimulus calculations are performed with a D65 whitepoint and CIE 1931 2-degree standard observer CMFs.
Fields
values: [f32; 40]
Implementations
impl SPD
[src]
pub fn new(values: [f32; 40]) -> SPD
[src]
Create a new SPD with the given values
pub fn constant(v: f32) -> SPD
[src]
Create a new SPD where all samples have the same value
pub fn to_xyz(&self) -> XYZf32
[src]
Convert this SPD to an XYZf32 assuming a D65 illuminant and CIE 1931 2-degree CMFs
This will use AVX if enabled
pub fn iter(&self) -> impl Iterator<Item = &f32>
[src]
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut f32>
[src]
Trait Implementations
impl Clone for SPD
[src]
impl Debug for SPD
[src]
impl Display for SPD
[src]
impl<'_> Mul<&'_ SPD> for &'_ SPD
[src]
type Output = SPD
The resulting type after applying the *
operator.
fn mul(self, rhs: &SPD) -> SPD
[src]
impl PartialEq<SPD> for SPD
[src]
Auto Trait Implementations
impl RefUnwindSafe for SPD
impl Send for SPD
impl Sync for SPD
impl Unpin for SPD
impl UnwindSafe for SPD
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,