pub enum CdxmlError {
UnknownAtomicNumber(u32),
UnknownAtomRef(String),
MissingBondEndpoint,
InvalidCoords(String),
TooManyAtoms(usize),
}Expand description
Error returned when parsing a CDXML document fails.
Variants§
UnknownAtomicNumber(u32)
An atom Element attribute contained an unknown atomic number.
UnknownAtomRef(String)
A bond referenced an atom id that was not defined.
MissingBondEndpoint
A <b> bond element is missing a B or E attribute.
InvalidCoords(String)
The p coordinate attribute could not be parsed.
TooManyAtoms(usize)
The document contains more atoms than the parser’s safety limit.
Trait Implementations§
Source§impl Clone for CdxmlError
impl Clone for CdxmlError
Source§fn clone(&self) -> CdxmlError
fn clone(&self) -> CdxmlError
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 CdxmlError
impl Debug for CdxmlError
Source§impl Display for CdxmlError
impl Display for CdxmlError
impl Eq for CdxmlError
Source§impl Error for CdxmlError
impl Error for CdxmlError
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 CdxmlError
impl PartialEq for CdxmlError
Source§fn eq(&self, other: &CdxmlError) -> bool
fn eq(&self, other: &CdxmlError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CdxmlError
Auto Trait Implementations§
impl Freeze for CdxmlError
impl RefUnwindSafe for CdxmlError
impl Send for CdxmlError
impl Sync for CdxmlError
impl Unpin for CdxmlError
impl UnsafeUnpin for CdxmlError
impl UnwindSafe for CdxmlError
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