pub enum StructuralPatternError {
Show 17 variants
InvalidCell(CellError),
ReflectionLengthMismatch,
SiteLengthMismatch,
SpeciesLengthMismatch,
ScatteringOffsetLengthMismatch,
NonFiniteScatteringOffset,
UnsupportedScatteringOffset,
Scattering(ScatteringError),
Correction(IntegratedIntensityCorrectionError),
StructureFactor(StructureFactorBatchError),
Profile(ProfileError),
Contributions(CwContributionsError),
ReflectionOutsideAngularDomain,
InvalidInstrument(CwError),
InvalidPositionCorrection,
PatternWeightLengthMismatch,
NonFinitePatternWeight,
}Expand description
Invalid fused structural-pattern request.
Variants§
InvalidCell(CellError)
The owned unit cell is invalid.
ReflectionLengthMismatch
Reflection indices and multiplicities have different lengths.
SiteLengthMismatch
Owned asymmetric-site arrays have different lengths.
SpeciesLengthMismatch
Scattering species count does not match the asymmetric-site count.
ScatteringOffsetLengthMismatch
Offset vectors are neither both empty nor matched to the asymmetric sites.
NonFiniteScatteringOffset
A fixed scattering offset is non-finite.
UnsupportedScatteringOffset
Fixed dispersion offsets were supplied to a non-X-ray model.
Scattering(ScatteringError)
Built-in scattering preparation or evaluation failed.
Correction(IntegratedIntensityCorrectionError)
Integrated-intensity correction evaluation failed.
StructureFactor(StructureFactorBatchError)
General-symmetry structural intensity failed.
Profile(ProfileError)
Grid validation failed.
Contributions(CwContributionsError)
CW/sample-physics accumulation failed.
ReflectionOutsideAngularDomain
A reflection is inaccessible for the monochromatic wavelength.
InvalidInstrument(CwError)
The CW instrument model is invalid.
InvalidPositionCorrection
A position-correction parameter is invalid.
PatternWeightLengthMismatch
Pattern reverse weights do not match the sample count.
NonFinitePatternWeight
A pattern reverse weight is non-finite.
Trait Implementations§
Source§impl Debug for StructuralPatternError
impl Debug for StructuralPatternError
Source§impl Display for StructuralPatternError
impl Display for StructuralPatternError
Source§impl Error for StructuralPatternError
impl Error for StructuralPatternError
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()
Auto Trait Implementations§
impl Freeze for StructuralPatternError
impl RefUnwindSafe for StructuralPatternError
impl Send for StructuralPatternError
impl Sync for StructuralPatternError
impl Unpin for StructuralPatternError
impl UnsafeUnpin for StructuralPatternError
impl UnwindSafe for StructuralPatternError
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 more