pub enum FitConfigError {
EmptyEnergies,
EmptyResonanceData,
DensityCountMismatch {
densities: usize,
isotopes: usize,
},
NameCountMismatch {
names: usize,
isotopes: usize,
},
GroupMemberCountMismatch {
group_name: String,
rd_count: usize,
member_count: usize,
},
GroupMemberIsotopeMismatch {
group_name: String,
expected_z: u32,
expected_a: u32,
got_z: u32,
got_a: u32,
},
NonFiniteTemperature(f64),
NegativeTemperature(f64),
}Expand description
Errors from FitConfig construction.
Variants§
EmptyEnergies
Energy grid must be non-empty.
EmptyResonanceData
Resonance data must be non-empty.
DensityCountMismatch
initial_densities length must match resonance_data length.
NameCountMismatch
isotope_names length must match resonance_data length.
GroupMemberCountMismatch
resonance_data count must match group member count.
GroupMemberIsotopeMismatch
ResonanceData isotope doesn’t match expected group member.
NonFiniteTemperature(f64)
Temperature must be finite.
NegativeTemperature(f64)
Temperature must be non-negative.
Trait Implementations§
Source§impl Debug for FitConfigError
impl Debug for FitConfigError
Source§impl Display for FitConfigError
impl Display for FitConfigError
Source§impl Error for FitConfigError
impl Error for FitConfigError
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 PartialEq for FitConfigError
impl PartialEq for FitConfigError
impl StructuralPartialEq for FitConfigError
Auto Trait Implementations§
impl Freeze for FitConfigError
impl RefUnwindSafe for FitConfigError
impl Send for FitConfigError
impl Sync for FitConfigError
impl Unpin for FitConfigError
impl UnwindSafe for FitConfigError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.