pub enum TofLeBailError {
Show 19 variants
Pattern(DomainError),
MissingObservations,
Profile(TofError),
InvalidPhase(&'static str),
InvalidOptions,
InvalidBackground,
InvalidBackgroundGrid,
BackgroundGridOutsideDomain,
BackgroundCoefficientLengthMismatch,
BackgroundBasisShape,
InsufficientBackgroundObservations,
BackgroundLinearSolve,
IntensityLengthMismatch,
DSpacingLengthMismatch,
AllocationOverflow,
InvalidCheckpoint(&'static str),
Residual(ResidualError),
Execution(ExecutionPolicyError),
Runtime(RuntimeError),
}Expand description
Invalid TOF Le Bail request or numerical state.
Variants§
Pattern(DomainError)
TOF pattern validation failed.
MissingObservations
The observed intensity array is absent.
Profile(TofError)
Instrument/profile evaluation failed.
InvalidPhase(&'static str)
A phase invariant failed.
InvalidOptions
Numerical options are invalid.
InvalidBackground
A Chebyshev background has invalid coefficients or domain.
InvalidBackgroundGrid
A background grid is empty, non-finite, or unsorted.
BackgroundGridOutsideDomain
The TOF grid extends outside the background domain.
BackgroundCoefficientLengthMismatch
Replacement background coefficients have the wrong length.
BackgroundBasisShape
A background derivative basis has an inconsistent shape.
InsufficientBackgroundObservations
Too few included observations remain to determine every coefficient.
BackgroundLinearSolve
The weighted Chebyshev least-squares solve failed.
IntensityLengthMismatch
Flattened reflection intensities have the wrong length.
DSpacingLengthMismatch
Replacement reflection d-spacings have the wrong length.
AllocationOverflow
Checked allocation arithmetic overflowed.
InvalidCheckpoint(&'static str)
A continuation state disagrees with the immutable request contract.
Residual(ResidualError)
Residual evaluation failed.
Execution(ExecutionPolicyError)
Execution policy construction failed.
Runtime(RuntimeError)
Bounded runtime, cancellation, event, or checkpoint delivery failed.
Trait Implementations§
Source§impl Debug for TofLeBailError
impl Debug for TofLeBailError
Source§impl Display for TofLeBailError
impl Display for TofLeBailError
Source§impl Error for TofLeBailError
impl Error for TofLeBailError
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<ExecutionPolicyError> for TofLeBailError
impl From<ExecutionPolicyError> for TofLeBailError
Source§fn from(value: ExecutionPolicyError) -> Self
fn from(value: ExecutionPolicyError) -> Self
Source§impl From<ResidualError> for TofLeBailError
impl From<ResidualError> for TofLeBailError
Source§fn from(value: ResidualError) -> Self
fn from(value: ResidualError) -> Self
Source§impl From<RuntimeError> for TofLeBailError
impl From<RuntimeError> for TofLeBailError
Source§fn from(value: RuntimeError) -> Self
fn from(value: RuntimeError) -> Self
Source§impl From<TofError> for TofLeBailError
impl From<TofError> for TofLeBailError
Source§impl From<TofLeBailError> for TofMultiBankError
impl From<TofLeBailError> for TofMultiBankError
Source§fn from(value: TofLeBailError) -> Self
fn from(value: TofLeBailError) -> Self
Source§impl From<TofLeBailError> for TofMultiBankGeometryError
impl From<TofLeBailError> for TofMultiBankGeometryError
Source§fn from(value: TofLeBailError) -> Self
fn from(value: TofLeBailError) -> Self
Source§impl From<TofLeBailError> for TofMultiBankInstrumentError
impl From<TofLeBailError> for TofMultiBankInstrumentError
Source§fn from(value: TofLeBailError) -> Self
fn from(value: TofLeBailError) -> Self
Source§impl From<TofLeBailError> for TofMultiBankLatticeError
impl From<TofLeBailError> for TofMultiBankLatticeError
Source§fn from(value: TofLeBailError) -> Self
fn from(value: TofLeBailError) -> Self
Source§impl From<TofLeBailError> for TofProjectError
impl From<TofLeBailError> for TofProjectError
Source§fn from(value: TofLeBailError) -> Self
fn from(value: TofLeBailError) -> Self
Source§impl From<TofLeBailError> for StructuralTofMultiBankError
impl From<TofLeBailError> for StructuralTofMultiBankError
Source§fn from(value: TofLeBailError) -> Self
fn from(value: TofLeBailError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for TofLeBailError
impl !UnwindSafe for TofLeBailError
impl Freeze for TofLeBailError
impl Send for TofLeBailError
impl Sync for TofLeBailError
impl Unpin for TofLeBailError
impl UnsafeUnpin for TofLeBailError
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.