pub enum InelasticTableError {
Invalid {
what: &'static str,
reason: String,
},
EmptyDistribution {
energy_ev: f64,
inverse_mfp_per_m: f64,
integral: f64,
},
DensityNodeLimit {
energy_ev: f64,
max_nodes: usize,
},
Data(ElectronDataError),
}Expand description
Errors from the table builder and the samplers.
Variants§
Invalid
An input violates an invariant.
EmptyDistribution
The model reports a loss rate but the density has no support.
Fields
DensityNodeLimit
The loss density of a row still failed its split test when it reached
MAX_NODES nodes (module docs, “Floating-point resolution”).
Data(ElectronDataError)
The model or the assembled table failed.
Trait Implementations§
Source§impl Debug for InelasticTableError
impl Debug for InelasticTableError
Source§impl Display for InelasticTableError
impl Display for InelasticTableError
Source§impl Error for InelasticTableError
impl Error for InelasticTableError
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<ElectronDataError> for InelasticTableError
impl From<ElectronDataError> for InelasticTableError
Source§fn from(source: ElectronDataError) -> Self
fn from(source: ElectronDataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InelasticTableError
impl RefUnwindSafe for InelasticTableError
impl Send for InelasticTableError
impl Sync for InelasticTableError
impl Unpin for InelasticTableError
impl UnsafeUnpin for InelasticTableError
impl UnwindSafe for InelasticTableError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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