pub enum JointRietveldError {
Show 13 variants
TooFewHistograms,
DuplicateHistogramId,
SharedSelectionMismatch,
SharedPhaseMismatch {
phase_id: RecordId,
},
SharedParameterMismatch {
key: ParameterKey,
},
HistogramContractMismatch,
ValueLengthMismatch,
HistogramProductCountMismatch,
LocalProductLengthMismatch,
InvalidDamping,
Parameter(ParameterError),
GeneralParameter(RietveldGeneralParameterError),
GeneralObjective(RietveldGeneralObjectiveError),
}Expand description
Invalid joint native Rietveld parameter or objective state.
Variants§
TooFewHistograms
A joint objective requires at least two histograms.
DuplicateHistogramId
Stable histogram identities must be unique.
Shared structural selection differs between histograms.
Physical structure differs for one shared stable phase.
One shared scalar differs in value or metadata.
HistogramContractMismatch
A prepared layout was paired with different histograms.
ValueLengthMismatch
Joint value/direction length is wrong.
HistogramProductCountMismatch
Number of histogram reverse products is wrong.
LocalProductLengthMismatch
A local reverse product has a stale parameter length.
InvalidDamping
Damping must be finite and non-negative.
Parameter(ParameterError)
Stable scalar parameter state is invalid.
GeneralParameter(RietveldGeneralParameterError)
Complete single-histogram parameter state is invalid.
GeneralObjective(RietveldGeneralObjectiveError)
Complete single-histogram objective state is invalid.
Trait Implementations§
Source§impl Debug for JointRietveldError
impl Debug for JointRietveldError
Source§impl Display for JointRietveldError
impl Display for JointRietveldError
Source§impl Error for JointRietveldError
impl Error for JointRietveldError
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()
Source§impl From<JointRietveldError> for JointRietveldRefinementError
impl From<JointRietveldError> for JointRietveldRefinementError
Source§fn from(value: JointRietveldError) -> Self
fn from(value: JointRietveldError) -> Self
Converts to this type from the input type.
Source§impl From<ParameterError> for JointRietveldError
impl From<ParameterError> for JointRietveldError
Source§fn from(value: ParameterError) -> Self
fn from(value: ParameterError) -> Self
Converts to this type from the input type.
Source§impl From<RietveldError> for JointRietveldError
impl From<RietveldError> for JointRietveldError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Converts to this type from the input type.
Source§impl From<RietveldGeneralObjectiveError> for JointRietveldError
impl From<RietveldGeneralObjectiveError> for JointRietveldError
Source§fn from(value: RietveldGeneralObjectiveError) -> Self
fn from(value: RietveldGeneralObjectiveError) -> Self
Converts to this type from the input type.
Source§impl From<RietveldGeneralParameterError> for JointRietveldError
impl From<RietveldGeneralParameterError> for JointRietveldError
Source§fn from(value: RietveldGeneralParameterError) -> Self
fn from(value: RietveldGeneralParameterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JointRietveldError
impl RefUnwindSafe for JointRietveldError
impl Send for JointRietveldError
impl Sync for JointRietveldError
impl Unpin for JointRietveldError
impl UnsafeUnpin for JointRietveldError
impl UnwindSafe for JointRietveldError
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 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.