pub struct SpectralSample {
pub wavelength_nm: f64,
pub intensity: f64,
}Expand description
A simple wavelength-plus-intensity sample.
Fields§
§wavelength_nm: f64§intensity: f64Implementations§
Trait Implementations§
Source§impl Clone for SpectralSample
impl Clone for SpectralSample
Source§fn clone(&self) -> SpectralSample
fn clone(&self) -> SpectralSample
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 SpectralSample
impl Debug for SpectralSample
Source§impl PartialEq for SpectralSample
impl PartialEq for SpectralSample
Source§fn eq(&self, other: &SpectralSample) -> bool
fn eq(&self, other: &SpectralSample) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SpectralSample
impl StructuralPartialEq for SpectralSample
Auto Trait Implementations§
impl Freeze for SpectralSample
impl RefUnwindSafe for SpectralSample
impl Send for SpectralSample
impl Sync for SpectralSample
impl Unpin for SpectralSample
impl UnsafeUnpin for SpectralSample
impl UnwindSafe for SpectralSample
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