pub enum CmlError {
UnknownElement(String),
UnknownAtomRef(String),
InvalidAtomRefs2(String),
InvalidBondOrder(String),
}Expand description
Error returned when parsing a CML document fails.
Variants§
UnknownElement(String)
An atom referenced elementType that is not a known element symbol.
UnknownAtomRef(String)
A <bond> element referenced an atom id that was not defined.
InvalidAtomRefs2(String)
A <bond> element’s atomRefs2 attribute was not two space-separated ids.
InvalidBondOrder(String)
A <bond> element’s order attribute could not be interpreted.
Trait Implementations§
impl Eq for CmlError
Source§impl Error for CmlError
impl Error for CmlError
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()
impl StructuralPartialEq for CmlError
Auto Trait Implementations§
impl Freeze for CmlError
impl RefUnwindSafe for CmlError
impl Send for CmlError
impl Sync for CmlError
impl Unpin for CmlError
impl UnsafeUnpin for CmlError
impl UnwindSafe for CmlError
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