pub enum ReactionValidationError {
EmptyReaction,
MissingReactants,
MissingProducts,
EmptyCatalystLabel,
EmptySolventLabel,
EmptyTemperatureLabel,
EmptyPressureLabel,
EmptyConditionLabel,
EmptyConditionValue,
InvalidStoichiometry(StoichiometryValidationError),
}Expand description
Errors returned when constructing or validating reaction values.
Variants§
EmptyReaction
A reaction has no reactants and no products.
MissingReactants
A reaction has no reactants.
MissingProducts
A reaction has no products.
EmptyCatalystLabel
A catalyst label is empty.
EmptySolventLabel
A solvent label is empty.
EmptyTemperatureLabel
A temperature label is empty.
EmptyPressureLabel
A pressure label is empty.
EmptyConditionLabel
A generic condition label is empty.
EmptyConditionValue
A generic condition value is empty.
InvalidStoichiometry(StoichiometryValidationError)
A stoichiometry primitive rejected the value.
Trait Implementations§
Source§impl Clone for ReactionValidationError
impl Clone for ReactionValidationError
Source§fn clone(&self) -> ReactionValidationError
fn clone(&self) -> ReactionValidationError
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 ReactionValidationError
impl Debug for ReactionValidationError
Source§impl Display for ReactionValidationError
impl Display for ReactionValidationError
Source§impl Error for ReactionValidationError
impl Error for ReactionValidationError
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<StoichiometryValidationError> for ReactionValidationError
impl From<StoichiometryValidationError> for ReactionValidationError
Source§fn from(error: StoichiometryValidationError) -> Self
fn from(error: StoichiometryValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReactionValidationError
impl PartialEq for ReactionValidationError
Source§fn eq(&self, other: &ReactionValidationError) -> bool
fn eq(&self, other: &ReactionValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReactionValidationError
impl StructuralPartialEq for ReactionValidationError
Auto Trait Implementations§
impl Freeze for ReactionValidationError
impl RefUnwindSafe for ReactionValidationError
impl Send for ReactionValidationError
impl Sync for ReactionValidationError
impl Unpin for ReactionValidationError
impl UnsafeUnpin for ReactionValidationError
impl UnwindSafe for ReactionValidationError
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