pub enum IonValidationError {
EmptyName,
ZeroChargeMagnitude,
EmptyOxidationStateLabel,
ExpectedCation,
ExpectedAnion,
ExpectedMonatomicFormula,
ExpectedPolyatomicFormula,
}Expand description
Errors returned when constructing ion values.
Variants§
EmptyName
An ion name is empty.
ZeroChargeMagnitude
A charge magnitude is zero.
EmptyOxidationStateLabel
An oxidation-state label is empty.
ExpectedCation
A positive ion was required.
ExpectedAnion
A negative ion was required.
ExpectedMonatomicFormula
A monatomic formula was required.
ExpectedPolyatomicFormula
A polyatomic formula was required.
Trait Implementations§
Source§impl Clone for IonValidationError
impl Clone for IonValidationError
Source§fn clone(&self) -> IonValidationError
fn clone(&self) -> IonValidationError
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 Debug for IonValidationError
impl Debug for IonValidationError
Source§impl Display for IonValidationError
impl Display for IonValidationError
Source§impl Error for IonValidationError
impl Error for IonValidationError
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 IonValidationError
impl PartialEq for IonValidationError
impl Eq for IonValidationError
impl StructuralPartialEq for IonValidationError
Auto Trait Implementations§
impl Freeze for IonValidationError
impl RefUnwindSafe for IonValidationError
impl Send for IonValidationError
impl Sync for IonValidationError
impl Unpin for IonValidationError
impl UnsafeUnpin for IonValidationError
impl UnwindSafe for IonValidationError
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