pub enum StructureFactorBatchError {
Cell(CellError),
Symmetry(SymmetryError),
CellSymmetryMismatch,
SiteLengthMismatch,
ReflectionLengthMismatch,
ScatteringShapeMismatch,
NonFiniteInput,
InvalidPhysicalParameter,
ZeroReflection,
AllocationOverflow,
TangentLengthMismatch,
WeightLengthMismatch,
}Expand description
Invalid general-symmetry structure-factor input.
Variants§
Cell(CellError)
The unit cell is invalid.
Symmetry(SymmetryError)
Symmetry expansion failed.
CellSymmetryMismatch
The cell metric is incompatible with the space-group rotations.
SiteLengthMismatch
Site arrays do not share one site count.
ReflectionLengthMismatch
Reflection arrays do not share one reflection count.
ScatteringShapeMismatch
Scattering arrays are not exactly reflection count times site count.
NonFiniteInput
An input scalar or array entry is non-finite.
InvalidPhysicalParameter
A physical scale, occupancy, displacement, correction, or multiplicity is invalid.
ZeroReflection
An hkl = 0 row does not define a structural reflection.
AllocationOverflow
A requested output allocation overflowed addressable memory.
TangentLengthMismatch
A forward tangent does not match the stable parameter layout.
WeightLengthMismatch
Reverse weights do not match the reflection count.
Trait Implementations§
Source§impl Clone for StructureFactorBatchError
impl Clone for StructureFactorBatchError
Source§fn clone(&self) -> StructureFactorBatchError
fn clone(&self) -> StructureFactorBatchError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructureFactorBatchError
impl Debug for StructureFactorBatchError
Source§impl Display for StructureFactorBatchError
impl Display for StructureFactorBatchError
Source§impl Error for StructureFactorBatchError
impl Error for StructureFactorBatchError
1.30.0 · 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<CellError> for StructureFactorBatchError
impl From<CellError> for StructureFactorBatchError
Source§impl From<SymmetryError> for StructureFactorBatchError
impl From<SymmetryError> for StructureFactorBatchError
Source§fn from(value: SymmetryError) -> Self
fn from(value: SymmetryError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for StructureFactorBatchError
Auto Trait Implementations§
impl Freeze for StructureFactorBatchError
impl RefUnwindSafe for StructureFactorBatchError
impl Send for StructureFactorBatchError
impl Sync for StructureFactorBatchError
impl Unpin for StructureFactorBatchError
impl UnsafeUnpin for StructureFactorBatchError
impl UnwindSafe for StructureFactorBatchError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more