pub enum CellError {
NonFiniteParameter,
NonPositiveLength,
InvalidAngle,
DegenerateCell,
ZeroReflection,
}Expand description
Unit-cell validation or reciprocal-space evaluation failure.
Variants§
NonFiniteParameter
A length or angle is not finite.
NonPositiveLength
A direct length is not positive.
InvalidAngle
An angle does not lie strictly within 0 and 180 degrees.
DegenerateCell
The six parameters do not define a positive-volume cell.
ZeroReflection
The zero Miller index does not define a finite d-spacing.
Trait Implementations§
impl Copy for CellError
impl Eq for CellError
Source§impl Error for CellError
impl Error for CellError
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 P1BatchError
impl From<CellError> for P1BatchError
Source§impl From<CellError> for ReflectionGenerationError
impl From<CellError> for ReflectionGenerationError
Source§impl From<CellError> for StructureFactorBatchError
impl From<CellError> for StructureFactorBatchError
impl StructuralPartialEq for CellError
Auto Trait Implementations§
impl Freeze for CellError
impl RefUnwindSafe for CellError
impl Send for CellError
impl Sync for CellError
impl Unpin for CellError
impl UnsafeUnpin for CellError
impl UnwindSafe for CellError
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