pub enum CwComponentsBatchError {
InvalidInstrument {
reason: CwError,
},
InvalidComponents {
reason: WavelengthComponentsError,
},
ReferenceWavelengthMismatch,
InvalidComponentPosition {
reflection: usize,
component: usize,
},
InvalidComponentProfile {
reflection: usize,
component: usize,
reason: CwError,
},
InvalidComponentGeometry {
reflection: usize,
component: usize,
reason: FcjError,
},
Accumulation {
reason: ProfileError,
},
}Expand description
Errors while accumulating a CW wavelength-component batch.
Variants§
InvalidInstrument
The shared constant-wavelength instrument is invalid.
InvalidComponents
The wavelength-component arrays are invalid.
Fields
§
reason: WavelengthComponentsErrorComponent validation failure.
ReferenceWavelengthMismatch
Component zero does not match the instrument reference wavelength.
InvalidComponentPosition
Bragg’s law cannot represent a wavelength at one reflection d-spacing.
Fields
InvalidComponentProfile
A component angle or its derived widths are invalid.
Fields
InvalidComponentGeometry
A component cannot be represented by the requested FCJ geometry.
Fields
Accumulation
Grid, support, or allocation validation failed.
Fields
§
reason: ProfileErrorUnderlying generic profile failure.
Trait Implementations§
Source§impl Clone for CwComponentsBatchError
impl Clone for CwComponentsBatchError
Source§fn clone(&self) -> CwComponentsBatchError
fn clone(&self) -> CwComponentsBatchError
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 CwComponentsBatchError
impl Debug for CwComponentsBatchError
Source§impl Display for CwComponentsBatchError
impl Display for CwComponentsBatchError
impl Eq for CwComponentsBatchError
Source§impl Error for CwComponentsBatchError
impl Error for CwComponentsBatchError
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 CwComponentsBatchError
impl From<ProfileError> for CwComponentsBatchError
Source§fn from(reason: ProfileError) -> Self
fn from(reason: ProfileError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CwComponentsBatchError
impl PartialEq for CwComponentsBatchError
impl StructuralPartialEq for CwComponentsBatchError
Auto Trait Implementations§
impl Freeze for CwComponentsBatchError
impl RefUnwindSafe for CwComponentsBatchError
impl Send for CwComponentsBatchError
impl Sync for CwComponentsBatchError
impl Unpin for CwComponentsBatchError
impl UnsafeUnpin for CwComponentsBatchError
impl UnwindSafe for CwComponentsBatchError
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