pub enum CwBatchError {
ReflectionLengthMismatch,
NonFiniteIntensity {
reflection: usize,
},
InvalidInstrument {
reason: CwError,
},
InvalidReflection {
reflection: usize,
reason: CwError,
},
Accumulation {
reason: ProfileError,
},
}Expand description
Errors while validating or accumulating a constant-wavelength batch.
Variants§
ReflectionLengthMismatch
Reflection position and intensity arrays have different lengths.
NonFiniteIntensity
An integrated intensity is non-finite.
InvalidInstrument
The shared instrument model is invalid.
InvalidReflection
A reflection angle or its derived widths are invalid.
Fields
Accumulation
Generic grid, support, or allocation failure from the accumulator.
Fields
§
reason: ProfileErrorUnderlying generic profile error.
Trait Implementations§
Source§impl Clone for CwBatchError
impl Clone for CwBatchError
Source§fn clone(&self) -> CwBatchError
fn clone(&self) -> CwBatchError
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 CwBatchError
impl Debug for CwBatchError
Source§impl Display for CwBatchError
impl Display for CwBatchError
impl Eq for CwBatchError
Source§impl Error for CwBatchError
impl Error for CwBatchError
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<ProfileError> for CwBatchError
impl From<ProfileError> for CwBatchError
Source§fn from(reason: ProfileError) -> Self
fn from(reason: ProfileError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CwBatchError
impl PartialEq for CwBatchError
impl StructuralPartialEq for CwBatchError
Auto Trait Implementations§
impl Freeze for CwBatchError
impl RefUnwindSafe for CwBatchError
impl Send for CwBatchError
impl Sync for CwBatchError
impl Unpin for CwBatchError
impl UnsafeUnpin for CwBatchError
impl UnwindSafe for CwBatchError
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