pub enum LatticeError {
Show 14 variants
Cell(CellError),
Generation(ReflectionGenerationError),
Tof(TofError),
UnsupportedSetting,
IncompatibleCell,
ValueShape,
InvalidBounds,
OutsideBounds,
InvalidDomain,
InvalidWavelength,
InaccessibleReflection,
NoPhysicalReflections,
InvalidIntensity,
UnboundedGuard,
}Expand description
Invalid lattice parameterization, bounds, geometry, or domain generation.
Variants§
Cell(CellError)
Unit-cell evaluation failed.
Generation(ReflectionGenerationError)
Reflection generation failed.
Tof(TofError)
TOF calibration validation or position evaluation failed.
UnsupportedSetting
Exact setting is not represented by the supported conventional mapping.
IncompatibleCell
Supplied cell is incompatible with the parameterization.
ValueShape
Independent value vector has the wrong shape or non-finite entries.
InvalidBounds
Bounds are invalid or do not contain the reference.
OutsideBounds
A requested cell lies outside the domain’s declared finite bounds.
InvalidDomain
Domain scalar state is invalid.
InvalidWavelength
Wavelength is invalid.
InaccessibleReflection
A reflection is outside the monochromatic Bragg domain.
NoPhysicalReflections
No physical monochromatic reflection remains after guarded generation.
InvalidIntensity
A transferred reflection intensity is negative or non-finite.
UnboundedGuard
Angle bounds cannot produce a finite guarded search domain.
Trait Implementations§
Source§impl Debug for LatticeError
impl Debug for LatticeError
Source§impl Display for LatticeError
impl Display for LatticeError
Source§impl Error for LatticeError
impl Error for LatticeError
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<LatticeError> for RietveldGeneralObjectiveError
impl From<LatticeError> for RietveldGeneralObjectiveError
Source§fn from(value: LatticeError) -> Self
fn from(value: LatticeError) -> Self
Source§impl From<LatticeError> for RietveldParameterError
impl From<LatticeError> for RietveldParameterError
Source§fn from(value: LatticeError) -> Self
fn from(value: LatticeError) -> Self
Source§impl From<LatticeError> for TofMultiBankGeometryError
impl From<LatticeError> for TofMultiBankGeometryError
Source§fn from(value: LatticeError) -> Self
fn from(value: LatticeError) -> Self
Source§impl From<LatticeError> for TofMultiBankLatticeError
impl From<LatticeError> for TofMultiBankLatticeError
Source§fn from(value: LatticeError) -> Self
fn from(value: LatticeError) -> Self
Source§impl From<LatticeError> for TofMultiBankProjectError
impl From<LatticeError> for TofMultiBankProjectError
Source§fn from(value: LatticeError) -> Self
fn from(value: LatticeError) -> Self
Auto Trait Implementations§
impl Freeze for LatticeError
impl RefUnwindSafe for LatticeError
impl Send for LatticeError
impl Sync for LatticeError
impl Unpin for LatticeError
impl UnsafeUnpin for LatticeError
impl UnwindSafe for LatticeError
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.