pub enum RietveldError {
Show 29 variants
Pattern(DomainError),
MissingObservations,
InvalidInstrument,
InvalidAxialGeometry,
InvalidPositionCorrection,
EmptyPhases,
InvalidPhaseName,
DuplicatePhaseId,
ContributionCountMismatch,
ReflectionIdentityMismatch,
ReflectionTopologyMismatch,
ReflectionWavelengthMismatch,
CorrectionWavelengthMismatch,
SpectrumReferenceWavelengthMismatch,
SpectrumReflectionDomain,
FixedReflectionTopology,
SiteIdCountMismatch,
DuplicateSiteId,
StructuralPattern(StructuralPatternError),
StructuralSpectrum(StructuralSpectrumError),
StructuralMultiphase(StructuralMultiphaseError),
Lattice(LatticeError),
Contributions(CwContributionsError),
SamplePhysics(SamplePhysicsError),
Residual(ResidualError),
Background(BackgroundError),
InvalidOptions,
NonFiniteCalculation,
CalculationShapeMismatch,
}Expand description
Invalid owned native Rietveld calculation state.
Variants§
Pattern(DomainError)
Pattern domain state is invalid.
MissingObservations
Observations are required for residual-bearing Rietveld requests.
InvalidInstrument
The constant-wavelength instrument is invalid.
InvalidAxialGeometry
Finger–Cox–Jephcoat geometry is invalid.
InvalidPositionCorrection
Monochromatic position correction is invalid.
EmptyPhases
At least one phase is required.
InvalidPhaseName
Phase names must be non-empty.
DuplicatePhaseId
Phase IDs must be unique.
ContributionCountMismatch
Sample-physics contributions must match the reflection count.
ReflectionIdentityMismatch
Stable reflection IDs are missing, duplicated, or mis-sized.
ReflectionTopologyMismatch
A dynamic reflection list does not match its current cell/domain.
ReflectionWavelengthMismatch
A dynamic phase domain must use the experiment wavelength.
CorrectionWavelengthMismatch
An integrated-intensity correction must use the experiment wavelength.
SpectrumReferenceWavelengthMismatch
A spectrum’s first component must equal the reference instrument wavelength.
SpectrumReflectionDomain
Dynamic lattice/reflection domains are not supported for fixed spectra.
FixedReflectionTopology
A fixed-reflection phase cannot regenerate lattice topology.
SiteIdCountMismatch
Stable site IDs must match the asymmetric-site count.
DuplicateSiteId
Stable site IDs must be unique within a phase.
StructuralPattern(StructuralPatternError)
One structural phase could not be prepared.
StructuralSpectrum(StructuralSpectrumError)
Native fixed-spectrum phase preparation failed.
StructuralMultiphase(StructuralMultiphaseError)
Native multiphase structural calculation failed.
Lattice(LatticeError)
Guarded reflection generation failed.
Contributions(CwContributionsError)
Stable-ID contribution transfer produced invalid arrays.
SamplePhysics(SamplePhysicsError)
Built-in sample-physics evaluation failed.
Residual(ResidualError)
Residual evaluation failed.
Background(BackgroundError)
Analytical background evaluation failed.
InvalidOptions
Calculation controls are invalid.
NonFiniteCalculation
Profile/background composition overflowed or became non-finite.
CalculationShapeMismatch
One internal phase result has incompatible sample dimensions.
Trait Implementations§
Source§impl Debug for RietveldError
impl Debug for RietveldError
Source§impl Display for RietveldError
impl Display for RietveldError
Source§impl Error for RietveldError
impl Error for RietveldError
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<RietveldError> for PhaseScaleEstimationError
impl From<RietveldError> for PhaseScaleEstimationError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for RietveldGeneralObjectiveError
impl From<RietveldError> for RietveldGeneralObjectiveError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for RietveldGeneralParameterError
impl From<RietveldError> for RietveldGeneralParameterError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for RietveldGeneralRefinementError
impl From<RietveldError> for RietveldGeneralRefinementError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for JointRietveldError
impl From<RietveldError> for JointRietveldError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for JointRietveldRefinementError
impl From<RietveldError> for JointRietveldRefinementError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for RietveldObjectiveError
impl From<RietveldError> for RietveldObjectiveError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for RietveldProjectError
impl From<RietveldError> for RietveldProjectError
Source§fn from(error: RietveldError) -> Self
fn from(error: RietveldError) -> Self
Source§impl From<RietveldError> for RietveldRecipeError
impl From<RietveldError> for RietveldRecipeError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for RietveldRefinementError
impl From<RietveldError> for RietveldRefinementError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldError> for StructuralTofMultiBankError
impl From<RietveldError> for StructuralTofMultiBankError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Auto Trait Implementations§
impl Freeze for RietveldError
impl RefUnwindSafe for RietveldError
impl Send for RietveldError
impl Sync for RietveldError
impl Unpin for RietveldError
impl UnsafeUnpin for RietveldError
impl UnwindSafe for RietveldError
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.