pub enum MolParseError {
InvalidHeader {
line: usize,
detail: String,
},
InvalidCountLine {
line: usize,
detail: String,
},
InvalidAtomLine {
line: usize,
detail: String,
},
InvalidBondLine {
line: usize,
detail: String,
},
UnknownElement {
symbol: String,
line: usize,
},
UnexpectedEnd,
V3000ParseError {
line: usize,
msg: String,
},
}Expand description
Errors that can occur while parsing a MOL V2000 or SDF file.
Variants§
InvalidHeader
The header block (lines 1–3) could not be parsed.
InvalidCountLine
The counts line (line 4) is missing or malformed.
InvalidAtomLine
An atom-block line could not be parsed.
InvalidBondLine
A bond-block line could not be parsed.
UnknownElement
The element symbol on an atom line is not recognised.
UnexpectedEnd
The input ended before the molecule was complete.
V3000ParseError
A V3000 (Extended Ctab) structural error.
Trait Implementations§
Source§impl Clone for MolParseError
impl Clone for MolParseError
Source§fn clone(&self) -> MolParseError
fn clone(&self) -> MolParseError
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 MolParseError
impl Debug for MolParseError
Source§impl Display for MolParseError
impl Display for MolParseError
Source§impl Error for MolParseError
impl Error for MolParseError
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 MolParseError
impl PartialEq for MolParseError
Source§fn eq(&self, other: &MolParseError) -> bool
fn eq(&self, other: &MolParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MolParseError
impl StructuralPartialEq for MolParseError
Auto Trait Implementations§
impl Freeze for MolParseError
impl RefUnwindSafe for MolParseError
impl Send for MolParseError
impl Sync for MolParseError
impl Unpin for MolParseError
impl UnsafeUnpin for MolParseError
impl UnwindSafe for MolParseError
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