pub enum LeBailError {
Show 22 variants
Pattern(DomainError),
MissingObservations,
Parameter(ParameterError),
Constraint(ConstraintError),
Lattice(LatticeError),
Background(BackgroundError),
UnsupportedParameter {
label: String,
},
ParameterDomainOutsideBounds {
label: String,
},
LinearSolve,
InvalidPhase {
message: String,
},
InvalidOptions {
message: String,
},
InvalidCheckpoint {
message: String,
},
IntensityShapeMismatch,
PreserveMaskLengthMismatch,
Grid(ProfileError),
Calculation(CwContributionsError),
Residual(ResidualError),
Runtime(RuntimeError),
Execution(ExecutionPolicyError),
SizeOverflow,
Profile {
message: String,
},
InternalInvariant,
}Expand description
Invalid native fixed-reflection Le Bail state or operation.
Variants§
Pattern(DomainError)
Pattern domain state is invalid.
MissingObservations
Observations are required.
Parameter(ParameterError)
Typed parameter construction or replacement failed.
Constraint(ConstraintError)
Constraint graph or transform failed.
Lattice(LatticeError)
Lattice parameterization, geometry, bounds, or generation failed.
Background(BackgroundError)
Analytical residual-background evaluation failed.
UnsupportedParameter
A parameter key is not supported by fixed-geometry Le Bail.
ParameterDomainOutsideBounds
A live domain value violates its declared parameter bounds.
LinearSolve
Native least-squares solution failed.
InvalidPhase
One phase or reflection record is invalid.
InvalidOptions
One option is invalid.
InvalidCheckpoint
A checkpoint cannot continue this request.
IntensityShapeMismatch
Current intensities do not match the calculated reflection order.
PreserveMaskLengthMismatch
Preserve-if-unobserved mask does not match the reflection count.
Grid(ProfileError)
Pattern grid validation failed.
Calculation(CwContributionsError)
Native CW accumulation failed.
Residual(ResidualError)
Residual evaluation failed.
Runtime(RuntimeError)
Bounded runtime or host callback failed.
Execution(ExecutionPolicyError)
Execution policy construction failed.
SizeOverflow
A workflow-owned allocation/budget count overflowed.
Profile
A lower-level profile/instrument validation failed.
InternalInvariant
Private workflow state became inconsistent.
Trait Implementations§
Source§impl Debug for LeBailError
impl Debug for LeBailError
Source§impl Display for LeBailError
impl Display for LeBailError
Source§impl Error for LeBailError
impl Error for LeBailError
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<LeBailError> for ProfileEstimationError
impl From<LeBailError> for ProfileEstimationError
Source§fn from(value: LeBailError) -> Self
fn from(value: LeBailError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for LeBailError
impl !UnwindSafe for LeBailError
impl Freeze for LeBailError
impl Send for LeBailError
impl Sync for LeBailError
impl Unpin for LeBailError
impl UnsafeUnpin for LeBailError
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.