pub enum OxidationStateValidationError {
ZeroSignedMagnitude,
NonZeroZeroMagnitude,
MagnitudeAboveMaximum {
magnitude: u8,
maximum: u8,
},
EmptyAssignmentLabel,
EmptyElementSymbol,
InvalidElementSymbol(String),
EmptyFormulaLabel,
}Expand description
Errors returned when constructing oxidation-state values.
Variants§
ZeroSignedMagnitude
A signed oxidation state used zero magnitude.
NonZeroZeroMagnitude
A zero oxidation state used nonzero magnitude.
MagnitudeAboveMaximum
A magnitude is above the supported range.
EmptyAssignmentLabel
A generic assignment label is empty.
EmptyElementSymbol
An element symbol is empty.
InvalidElementSymbol(String)
An element symbol does not match the supported shape.
EmptyFormulaLabel
A formula or formula-context label is empty.
Trait Implementations§
Source§impl Clone for OxidationStateValidationError
impl Clone for OxidationStateValidationError
Source§fn clone(&self) -> OxidationStateValidationError
fn clone(&self) -> OxidationStateValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for OxidationStateValidationError
impl Error for OxidationStateValidationError
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 OxidationStateValidationError
impl PartialEq for OxidationStateValidationError
Source§fn eq(&self, other: &OxidationStateValidationError) -> bool
fn eq(&self, other: &OxidationStateValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OxidationStateValidationError
impl StructuralPartialEq for OxidationStateValidationError
Auto Trait Implementations§
impl Freeze for OxidationStateValidationError
impl RefUnwindSafe for OxidationStateValidationError
impl Send for OxidationStateValidationError
impl Sync for OxidationStateValidationError
impl Unpin for OxidationStateValidationError
impl UnsafeUnpin for OxidationStateValidationError
impl UnwindSafe for OxidationStateValidationError
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