pub enum StructuralSpectrumError {
ComponentLengthMismatch,
EmptyComponents,
InvalidWavelength,
InvalidRelativeIntensity,
ContributionCountMismatch,
IncompatibleComponentResult,
AllocationOverflow,
Structural(StructuralPatternError),
}Expand description
Invalid fixed-wavelength structural spectrum request.
Variants§
ComponentLengthMismatch
Wavelength and relative-intensity arrays differ in length.
EmptyComponents
No wavelength component was supplied.
InvalidWavelength
A wavelength is non-finite or non-positive.
InvalidRelativeIntensity
A relative intensity is non-finite or negative, or the reference is zero.
ContributionCountMismatch
Dynamic contribution batches do not match the prepared component count.
IncompatibleComponentResult
Component calculations do not have compatible result layouts.
AllocationOverflow
Component composition allocation arithmetic overflowed.
Structural(StructuralPatternError)
A monochromatic structural calculation failed.
Trait Implementations§
Source§impl Debug for StructuralSpectrumError
impl Debug for StructuralSpectrumError
Source§impl Display for StructuralSpectrumError
impl Display for StructuralSpectrumError
Source§impl Error for StructuralSpectrumError
impl Error for StructuralSpectrumError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StructuralSpectrumError
impl RefUnwindSafe for StructuralSpectrumError
impl Send for StructuralSpectrumError
impl Sync for StructuralSpectrumError
impl Unpin for StructuralSpectrumError
impl UnsafeUnpin for StructuralSpectrumError
impl UnwindSafe for StructuralSpectrumError
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> 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