pub enum DynamicError {
NonFiniteDelta {
slab: usize,
z: u8,
delta: f64,
},
SlabOutOfRange {
slab: usize,
n_slabs: usize,
},
UnknownAtomicNumber(u8),
NegativeInventory {
slab: usize,
z: u8,
result: f64,
},
MissingVolume(u8),
InvalidParameter(f64),
NoElementalDensity(u8),
Overflow {
slab: usize,
},
EmptyTarget,
InvalidInitial(String),
Geometry(GeometryError),
Material(MaterialError),
}Expand description
Errors from building or updating a CompositionGrid.
Variants§
NonFiniteDelta
A delta was NaN or infinite.
SlabOutOfRange
A delta referred to a slab that does not exist.
UnknownAtomicNumber(u8)
Unknown atomic number.
NegativeInventory
An update would make an inventory negative.
MissingVolume(u8)
The relaxation convention has no volume for a species present.
InvalidParameter(f64)
A reference volume or number density was not finite and positive.
NoElementalDensity(u8)
An element has no tabulated solid density to derive a volume from.
Overflow
A relaxed thickness or density was not finite and positive.
EmptyTarget
Every slab was depleted and there is no substrate.
InvalidInitial(String)
A slab of the initial stack had no usable composition.
Geometry(GeometryError)
Stack construction failed.
Material(MaterialError)
Material construction failed.
Trait Implementations§
Source§impl Clone for DynamicError
impl Clone for DynamicError
Source§fn clone(&self) -> DynamicError
fn clone(&self) -> DynamicError
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 DynamicError
impl Debug for DynamicError
Source§impl Display for DynamicError
impl Display for DynamicError
Source§impl Error for DynamicError
impl Error for DynamicError
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<DynamicError> for DynamicRunError
impl From<DynamicError> for DynamicRunError
Source§fn from(source: DynamicError) -> Self
fn from(source: DynamicError) -> Self
Converts to this type from the input type.
Source§impl From<GeometryError> for DynamicError
impl From<GeometryError> for DynamicError
Source§fn from(source: GeometryError) -> Self
fn from(source: GeometryError) -> Self
Converts to this type from the input type.
Source§impl From<MaterialError> for DynamicError
impl From<MaterialError> for DynamicError
Source§fn from(source: MaterialError) -> Self
fn from(source: MaterialError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DynamicError
impl PartialEq for DynamicError
impl StructuralPartialEq for DynamicError
Auto Trait Implementations§
impl Freeze for DynamicError
impl RefUnwindSafe for DynamicError
impl Send for DynamicError
impl Sync for DynamicError
impl Unpin for DynamicError
impl UnsafeUnpin for DynamicError
impl UnwindSafe for DynamicError
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