pub enum RietveldGeneralParameterError {
Show 14 variants
DuplicateInstrumentParameter,
MissingSamplePhysics {
phase_id: String,
},
MissingBackground,
InstrumentGeometryMismatch,
SpectrumWavelengthRefinement,
SpectrumLatticeRefinement,
BackgroundIdentityMismatch,
ValueLengthMismatch,
StructuralGradientLengthMismatch,
Parameter(ParameterError),
Structural(RietveldParameterError),
Rietveld(RietveldError),
Background(BackgroundError),
SamplePhysics(SamplePhysicsError),
}Expand description
Invalid complete native Rietveld parameter state.
Variants§
DuplicateInstrumentParameter
One instrument parameter was selected more than once.
MissingSamplePhysics
A phase lost the built-in model recorded by this parameter layout.
MissingBackground
Background selection requires an attached analytical model.
InstrumentGeometryMismatch
A selected position parameter does not match the configured geometry.
SpectrumWavelengthRefinement
Fixed component wavelengths cannot be refined as one scalar.
SpectrumLatticeRefinement
Dynamic lattice/topology refinement is not supported for spectra.
BackgroundIdentityMismatch
Accepted background identity changed under the layout.
ValueLengthMismatch
Complete value/direction length is wrong.
StructuralGradientLengthMismatch
Structural reverse-product length is wrong.
Parameter(ParameterError)
Stable scalar parameter state is invalid.
Structural(RietveldParameterError)
Structural parameter state is invalid.
Rietveld(RietveldError)
Request state is invalid.
Background(BackgroundError)
Background replacement failed.
SamplePhysics(SamplePhysicsError)
Built-in sample-physics state is invalid.
Trait Implementations§
Source§impl Error for RietveldGeneralParameterError
impl Error for RietveldGeneralParameterError
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<BackgroundError> for RietveldGeneralParameterError
impl From<BackgroundError> for RietveldGeneralParameterError
Source§fn from(value: BackgroundError) -> Self
fn from(value: BackgroundError) -> Self
Source§impl From<ParameterError> for RietveldGeneralParameterError
impl From<ParameterError> for RietveldGeneralParameterError
Source§fn from(value: ParameterError) -> Self
fn from(value: ParameterError) -> 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<RietveldGeneralParameterError> for RietveldGeneralObjectiveError
impl From<RietveldGeneralParameterError> for RietveldGeneralObjectiveError
Source§fn from(value: RietveldGeneralParameterError) -> Self
fn from(value: RietveldGeneralParameterError) -> Self
Source§impl From<RietveldGeneralParameterError> for RietveldGeneralRefinementError
impl From<RietveldGeneralParameterError> for RietveldGeneralRefinementError
Source§fn from(value: RietveldGeneralParameterError) -> Self
fn from(value: RietveldGeneralParameterError) -> Self
Source§impl From<RietveldGeneralParameterError> for JointRietveldError
impl From<RietveldGeneralParameterError> for JointRietveldError
Source§fn from(value: RietveldGeneralParameterError) -> Self
fn from(value: RietveldGeneralParameterError) -> Self
Source§impl From<RietveldGeneralParameterError> for RietveldProjectError
impl From<RietveldGeneralParameterError> for RietveldProjectError
Source§fn from(error: RietveldGeneralParameterError) -> Self
fn from(error: RietveldGeneralParameterError) -> Self
Source§impl From<RietveldGeneralParameterError> for RietveldRecipeError
impl From<RietveldGeneralParameterError> for RietveldRecipeError
Source§fn from(value: RietveldGeneralParameterError) -> Self
fn from(value: RietveldGeneralParameterError) -> Self
Source§impl From<RietveldGeneralParameterError> for RietveldRefinementError
impl From<RietveldGeneralParameterError> for RietveldRefinementError
Source§fn from(value: RietveldGeneralParameterError) -> Self
fn from(value: RietveldGeneralParameterError) -> Self
Source§impl From<RietveldParameterError> for RietveldGeneralParameterError
impl From<RietveldParameterError> for RietveldGeneralParameterError
Source§fn from(value: RietveldParameterError) -> Self
fn from(value: RietveldParameterError) -> Self
Source§impl From<SamplePhysicsError> for RietveldGeneralParameterError
impl From<SamplePhysicsError> for RietveldGeneralParameterError
Source§fn from(value: SamplePhysicsError) -> Self
fn from(value: SamplePhysicsError) -> Self
Auto Trait Implementations§
impl Freeze for RietveldGeneralParameterError
impl RefUnwindSafe for RietveldGeneralParameterError
impl Send for RietveldGeneralParameterError
impl Sync for RietveldGeneralParameterError
impl Unpin for RietveldGeneralParameterError
impl UnsafeUnpin for RietveldGeneralParameterError
impl UnwindSafe for RietveldGeneralParameterError
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.