pub struct Spectral<const BANDS: usize, G, K>(/* private fields */);Expand description
A spectral color value on grid G encoding physical quantity K.
The storage type is [f32; BANDS]. BANDS must match the single value for
which G implements WavelengthGrid; the bound G: WavelengthGrid<BANDS>
enforces consistency. Use the provided type aliases rather than naming
Spectral directly.
Spectral<N, G, IsBispectral> does not implement BackingStore<[f32; N]>
because bispectral data is N-by-N, not N-by-1. See IsBispectral for context.
Trait Implementations§
Source§impl<const BANDS: usize, G, K> SpectralSpace for Spectral<BANDS, G, K>where
G: WavelengthGrid<BANDS>,
K: SpectralKind,
impl<const BANDS: usize, G, K> SpectralSpace for Spectral<BANDS, G, K>where
G: WavelengthGrid<BANDS>,
K: SpectralKind,
impl<const BANDS: usize, G> BackingStore<[f32; BANDS]> for Spectral<BANDS, G, IsRadiance>where
G: WavelengthGrid<BANDS>,
impl<const BANDS: usize, G> BackingStore<[f32; BANDS]> for Spectral<BANDS, G, IsReflectance>where
G: WavelengthGrid<BANDS>,
impl<const BANDS: usize, G> BackingStore<[f32; BANDS]> for Spectral<BANDS, G, IsTransmittance>where
G: WavelengthGrid<BANDS>,
impl<const BANDS: usize, G: Copy, K: Copy> Copy for Spectral<BANDS, G, K>
impl<const BANDS: usize, G: Eq, K: Eq> Eq for Spectral<BANDS, G, K>
impl<const BANDS: usize, G, K> StructuralPartialEq for Spectral<BANDS, G, K>
Auto Trait Implementations§
impl<const BANDS: usize, G, K> Freeze for Spectral<BANDS, G, K>
impl<const BANDS: usize, G, K> RefUnwindSafe for Spectral<BANDS, G, K>where
G: RefUnwindSafe,
K: RefUnwindSafe,
impl<const BANDS: usize, G, K> Send for Spectral<BANDS, G, K>
impl<const BANDS: usize, G, K> Sync for Spectral<BANDS, G, K>
impl<const BANDS: usize, G, K> Unpin for Spectral<BANDS, G, K>
impl<const BANDS: usize, G, K> UnsafeUnpin for Spectral<BANDS, G, K>
impl<const BANDS: usize, G, K> UnwindSafe for Spectral<BANDS, G, K>where
G: UnwindSafe,
K: UnwindSafe,
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