pub enum ElasticError {
Invalid {
what: &'static str,
reason: String,
},
ScreeningCoefficientsUnavailable(u32),
NumericalFailure(i32),
NotConverged(usize),
}Expand description
Errors from the elastic solver.
Variants§
Invalid
An input violates an invariant.
No screening coefficients for this atomic number: Table I of Salvat et al. (1987) covers Z = 1..92 only.
NumericalFailure(i32)
The integration produced a non-finite value.
NotConverged(usize)
The adaptive partial-wave sum did not converge by max_l.
Trait Implementations§
Source§impl Clone for ElasticError
impl Clone for ElasticError
Source§fn clone(&self) -> ElasticError
fn clone(&self) -> ElasticError
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 ElasticError
impl Debug for ElasticError
Source§impl Display for ElasticError
impl Display for ElasticError
Source§impl Error for ElasticError
impl Error for ElasticError
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 ElasticError
impl PartialEq for ElasticError
impl StructuralPartialEq for ElasticError
Auto Trait Implementations§
impl Freeze for ElasticError
impl RefUnwindSafe for ElasticError
impl Send for ElasticError
impl Sync for ElasticError
impl Unpin for ElasticError
impl UnsafeUnpin for ElasticError
impl UnwindSafe for ElasticError
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> 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