pub enum ProfileError {
NonFiniteGrid {
index: usize,
},
UnsortedGrid {
index: usize,
},
NonFinitePeak {
peak: usize,
},
NonPositiveFwhm {
peak: usize,
},
InvalidEta {
peak: usize,
},
InvalidSupport,
PeakLengthMismatch,
TchPeakLengthMismatch,
InvalidTchPeak {
peak: usize,
reason: TchError,
},
AllocationOverflow,
InconsistentSupport,
}Expand description
Input validation errors for profile evaluation.
Variants§
NonFiniteGrid
The sampling grid contains NaN or infinity.
UnsortedGrid
The sampling grid is not strictly increasing.
NonFinitePeak
A peak parameter contains NaN or infinity.
NonPositiveFwhm
A peak FWHM is zero or negative.
InvalidEta
A peak eta is outside [0, 1].
InvalidSupport
The requested support is zero, negative, NaN, or infinity.
PeakLengthMismatch
Peak parameter arrays do not all have the same length.
TchPeakLengthMismatch
TCH peak parameter arrays do not all have the same length.
InvalidTchPeak
A TCH peak has invalid component widths.
AllocationOverflow
A Jacobian allocation would overflow usize.
InconsistentSupport
A stored support block does not fit the requested dense grid.
Trait Implementations§
Source§impl Clone for ProfileError
impl Clone for ProfileError
Source§fn clone(&self) -> ProfileError
fn clone(&self) -> ProfileError
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 ProfileError
impl Debug for ProfileError
Source§impl Display for ProfileError
impl Display for ProfileError
impl Eq for ProfileError
Source§impl Error for ProfileError
impl Error for ProfileError
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 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 From<ProfileError> for CwContributionsError
impl From<ProfileError> for CwContributionsError
Source§fn from(reason: ProfileError) -> Self
fn from(reason: ProfileError) -> Self
Converts to this type from the input type.
Source§impl From<ProfileError> for TofError
impl From<ProfileError> for TofError
Source§fn from(reason: ProfileError) -> Self
fn from(reason: ProfileError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProfileError
impl PartialEq for ProfileError
impl StructuralPartialEq for ProfileError
Auto Trait Implementations§
impl Freeze for ProfileError
impl RefUnwindSafe for ProfileError
impl Send for ProfileError
impl Sync for ProfileError
impl Unpin for ProfileError
impl UnsafeUnpin for ProfileError
impl UnwindSafe for ProfileError
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