pub enum TofError {
Show 15 variants
NonFiniteInstrumentParameter,
NonPositiveDifc,
InvalidDSpacing,
InvalidPosition,
NonPositiveAlpha,
NonPositiveBeta,
NonPositiveGaussianVariance,
NegativeLorentzianFwhm,
InvalidTailLog,
InvalidQuadrature,
InvalidTch {
reason: TchError,
},
LengthMismatch,
NonFiniteIntensity {
reflection: usize,
},
AllocationOverflow,
Profile {
reason: ProfileError,
},
}Expand description
TOF domain or accumulation error.
Variants§
NonFiniteInstrumentParameter
At least one instrument coefficient is non-finite.
NonPositiveDifc
The linear calibration coefficient is not positive.
InvalidDSpacing
A reflection d-spacing is not positive and finite.
InvalidPosition
Calibration produced a non-finite position.
NonPositiveAlpha
The derived leading-edge exponential rate is invalid.
NonPositiveBeta
The derived trailing-edge exponential rate is invalid.
NonPositiveGaussianVariance
The derived Gaussian variance is invalid.
NegativeLorentzianFwhm
The derived Lorentzian width is invalid.
InvalidTailLog
The requested exponential tail cutoff is invalid.
InvalidQuadrature
Quadrature normalization failed.
InvalidTch
Component widths could not be transformed into a TCH shape.
LengthMismatch
Reflection d-spacing and intensity arrays have different lengths.
NonFiniteIntensity
One reflection intensity is non-finite.
AllocationOverflow
Allocation-size arithmetic overflowed or allocation failed.
Profile
Grid or support validation failed.
Fields
reason: ProfileErrorUnderlying grid or support failure.
Trait Implementations§
Source§impl Error for TofError
impl Error for TofError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ProfileError> for TofError
impl From<ProfileError> for TofError
Source§fn from(reason: ProfileError) -> Self
fn from(reason: ProfileError) -> Self
impl StructuralPartialEq for TofError
Auto Trait Implementations§
impl Freeze for TofError
impl RefUnwindSafe for TofError
impl Send for TofError
impl Sync for TofError
impl Unpin for TofError
impl UnsafeUnpin for TofError
impl UnwindSafe for TofError
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
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> ⓘ
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> ⓘ
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