pub enum ElasticTableError {
Invalid {
what: &'static str,
reason: String,
},
Potential {
z: u8,
source: ElasticError,
},
Solve {
z: u8,
energy_ev: f64,
source: ElasticError,
},
Material(MaterialError),
Data(ElectronDataError),
}Expand description
Errors from the table builder.
Variants§
Invalid
An input violates an invariant.
Potential
The potential source has no potential for this element.
Solve
The partial-wave solver failed.
Fields
§
source: ElasticErrorThe solver’s error.
Material(MaterialError)
A material lookup failed.
Data(ElectronDataError)
The assembled table failed validation.
Trait Implementations§
Source§impl Debug for ElasticTableError
impl Debug for ElasticTableError
Source§impl Display for ElasticTableError
impl Display for ElasticTableError
Source§impl Error for ElasticTableError
impl Error for ElasticTableError
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 ElasticTableError
impl From<ElectronDataError> for ElasticTableError
Source§fn from(source: ElectronDataError) -> Self
fn from(source: ElectronDataError) -> Self
Converts to this type from the input type.
Source§impl From<MaterialError> for ElasticTableError
impl From<MaterialError> for ElasticTableError
Source§fn from(source: MaterialError) -> Self
fn from(source: MaterialError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElasticTableError
impl RefUnwindSafe for ElasticTableError
impl Send for ElasticTableError
impl Sync for ElasticTableError
impl Unpin for ElasticTableError
impl UnsafeUnpin for ElasticTableError
impl UnwindSafe for ElasticTableError
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