pub enum RadiationDefinition {
Monochromatic {
probe: RadiationProbe,
wavelength_angstrom: f64,
},
FixedSpectrum {
probe: RadiationProbe,
spectrum: FixedWavelengthSpectrum,
},
}Expand description
Radiation attached to one constant-wavelength histogram.
Variants§
Monochromatic
One monochromatic wavelength.
FixedSpectrum
Fixed discrete wavelength spectrum.
Fields
§
probe: RadiationProbeProbe family.
§
spectrum: FixedWavelengthSpectrumValidated spectrum components.
Implementations§
Source§impl RadiationDefinition
impl RadiationDefinition
Sourcepub const fn probe(&self) -> RadiationProbe
pub const fn probe(&self) -> RadiationProbe
Return the probe family.
Sourcepub fn reference_wavelength_angstrom(&self) -> f64
pub fn reference_wavelength_angstrom(&self) -> f64
Return the reference wavelength used by the instrument record.
Trait Implementations§
Source§impl Clone for RadiationDefinition
impl Clone for RadiationDefinition
Source§fn clone(&self) -> RadiationDefinition
fn clone(&self) -> RadiationDefinition
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 RadiationDefinition
impl Debug for RadiationDefinition
Source§impl PartialEq for RadiationDefinition
impl PartialEq for RadiationDefinition
impl StructuralPartialEq for RadiationDefinition
Auto Trait Implementations§
impl Freeze for RadiationDefinition
impl RefUnwindSafe for RadiationDefinition
impl Send for RadiationDefinition
impl Sync for RadiationDefinition
impl Unpin for RadiationDefinition
impl UnsafeUnpin for RadiationDefinition
impl UnwindSafe for RadiationDefinition
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