pub enum StructuralTofMultiBankError {
Show 19 variants
TooFewBanks,
DuplicateBankId,
MissingObservations,
InvalidPhaseContract(&'static str),
InvalidBankContract(&'static str),
InvalidSupport,
BankContractMismatch,
ParameterLengthMismatch,
BankWeightCountMismatch,
InvalidDamping,
InternalInvariant,
Pattern(DomainError),
Rietveld(RietveldError),
StructuralParameters(RietveldParameterError),
Parameter(ParameterError),
Background(TofLeBailError),
Structural(StructuralTofError),
Tof(TofError),
Residual(ResidualError),
}Expand description
Invalid structural multi-bank TOF request or objective product.
Variants§
TooFewBanks
At least one bank is required for a structural TOF objective.
DuplicateBankId
Stable bank IDs must be unique.
MissingObservations
Observed intensities are required in every bank.
InvalidPhaseContract(&'static str)
Shared structural phase uses an unsupported TOF contract.
InvalidBankContract(&'static str)
A bank-local model or selection is invalid.
InvalidSupport
Support or tail controls are nonphysical.
BankContractMismatch
Prepared bank identities or selected families changed.
ParameterLengthMismatch
Physical value or direction length differs from the layout.
BankWeightCountMismatch
Reverse products do not contain one vector per bank.
InvalidDamping
Damping must be finite and non-negative.
InternalInvariant
A supposedly validated internal shape was inconsistent.
Pattern(DomainError)
TOF pattern domain validation failed.
Rietveld(RietveldError)
Shared phase validation failed.
StructuralParameters(RietveldParameterError)
Symmetry-aware structural parameter mapping failed.
Parameter(ParameterError)
Stable scalar parameter validation failed.
Background(TofLeBailError)
Background evaluation failed.
Structural(StructuralTofError)
Structural TOF engine evaluation failed.
Tof(TofError)
TOF instrument or bank geometry failed.
Residual(ResidualError)
Residual evaluation failed.
Trait Implementations§
Source§impl Debug for StructuralTofMultiBankError
impl Debug for StructuralTofMultiBankError
Source§impl Error for StructuralTofMultiBankError
impl Error for StructuralTofMultiBankError
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<DomainError> for StructuralTofMultiBankError
impl From<DomainError> for StructuralTofMultiBankError
Source§fn from(value: DomainError) -> Self
fn from(value: DomainError) -> Self
Source§impl From<ParameterError> for StructuralTofMultiBankError
impl From<ParameterError> for StructuralTofMultiBankError
Source§fn from(value: ParameterError) -> Self
fn from(value: ParameterError) -> Self
Source§impl From<ResidualError> for StructuralTofMultiBankError
impl From<ResidualError> for StructuralTofMultiBankError
Source§fn from(value: ResidualError) -> Self
fn from(value: ResidualError) -> Self
Source§impl From<RietveldError> for StructuralTofMultiBankError
impl From<RietveldError> for StructuralTofMultiBankError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldParameterError> for StructuralTofMultiBankError
impl From<RietveldParameterError> for StructuralTofMultiBankError
Source§fn from(value: RietveldParameterError) -> Self
fn from(value: RietveldParameterError) -> Self
Source§impl From<StructuralTofError> for StructuralTofMultiBankError
impl From<StructuralTofError> for StructuralTofMultiBankError
Source§fn from(value: StructuralTofError) -> Self
fn from(value: StructuralTofError) -> Self
Source§impl From<StructuralTofMultiBankError> for StructuralTofMultiBankRefinementError
impl From<StructuralTofMultiBankError> for StructuralTofMultiBankRefinementError
Source§fn from(value: StructuralTofMultiBankError) -> Self
fn from(value: StructuralTofMultiBankError) -> Self
Source§impl From<StructuralTofMultiBankError> for StructuralTofProjectError
impl From<StructuralTofMultiBankError> for StructuralTofProjectError
Source§fn from(value: StructuralTofMultiBankError) -> Self
fn from(value: StructuralTofMultiBankError) -> Self
Source§impl From<TofError> for StructuralTofMultiBankError
impl From<TofError> for StructuralTofMultiBankError
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 StructuralTofMultiBankError
impl !UnwindSafe for StructuralTofMultiBankError
impl Freeze for StructuralTofMultiBankError
impl Send for StructuralTofMultiBankError
impl Sync for StructuralTofMultiBankError
impl Unpin for StructuralTofMultiBankError
impl UnsafeUnpin for StructuralTofMultiBankError
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.