pub enum StoichiometryValidationError {
ZeroCoefficient,
ZeroRatioDenominator,
EmptyLimitingReagentLabel,
EmptyExcessReagentLabel,
NonFiniteYield,
NegativeYield,
NonPositiveTheoreticalYield,
ExpectedReactant,
ExpectedProduct,
}Expand description
Errors returned when constructing stoichiometry values.
Variants§
ZeroCoefficient
A stoichiometric coefficient is zero.
ZeroRatioDenominator
A ratio denominator is zero.
EmptyLimitingReagentLabel
A limiting-reagent label is empty.
EmptyExcessReagentLabel
An excess-reagent label is empty.
NonFiniteYield
A yield value is not finite.
NegativeYield
A yield value is negative.
NonPositiveTheoreticalYield
A theoretical yield value is zero or negative.
ExpectedReactant
A reactant entry was required.
ExpectedProduct
A product entry was required.
Trait Implementations§
Source§impl Clone for StoichiometryValidationError
impl Clone for StoichiometryValidationError
Source§fn clone(&self) -> StoichiometryValidationError
fn clone(&self) -> StoichiometryValidationError
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 StoichiometryValidationError
impl Debug for StoichiometryValidationError
Source§impl Error for StoichiometryValidationError
impl Error for StoichiometryValidationError
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 StoichiometryValidationError
impl PartialEq for StoichiometryValidationError
Source§fn eq(&self, other: &StoichiometryValidationError) -> bool
fn eq(&self, other: &StoichiometryValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StoichiometryValidationError
impl StructuralPartialEq for StoichiometryValidationError
Auto Trait Implementations§
impl Freeze for StoichiometryValidationError
impl RefUnwindSafe for StoichiometryValidationError
impl Send for StoichiometryValidationError
impl Sync for StoichiometryValidationError
impl Unpin for StoichiometryValidationError
impl UnsafeUnpin for StoichiometryValidationError
impl UnwindSafe for StoichiometryValidationError
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