pub enum MoleculeParseError<'a> {
NoAtomNumber,
InvalidAtomNumber(Cow<'a, str>, ParseIntError),
NoComment,
InvalidAtom(Cow<'a, str>, AtomParseError<'a>),
InvalidNumberOfAtoms(usize, usize),
}
Expand description
An error that can occur when parsing a Molecule
Variants§
NoAtomNumber
InvalidAtomNumber(Cow<'a, str>, ParseIntError)
NoComment
InvalidAtom(Cow<'a, str>, AtomParseError<'a>)
InvalidNumberOfAtoms(usize, usize)
Implementations§
Source§impl<'a> MoleculeParseError<'a>
impl<'a> MoleculeParseError<'a>
pub fn into_owned(self) -> MoleculeParseError<'static>
Trait Implementations§
Source§impl<'a> Clone for MoleculeParseError<'a>
impl<'a> Clone for MoleculeParseError<'a>
Source§fn clone(&self) -> MoleculeParseError<'a>
fn clone(&self) -> MoleculeParseError<'a>
Returns a copy 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<'a> Debug for MoleculeParseError<'a>
impl<'a> Debug for MoleculeParseError<'a>
Source§impl<'a> Display for MoleculeParseError<'a>
impl<'a> Display for MoleculeParseError<'a>
Source§impl Error for MoleculeParseError<'static>
impl Error for MoleculeParseError<'static>
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()
Auto Trait Implementations§
impl<'a> Freeze for MoleculeParseError<'a>
impl<'a> RefUnwindSafe for MoleculeParseError<'a>
impl<'a> Send for MoleculeParseError<'a>
impl<'a> Sync for MoleculeParseError<'a>
impl<'a> Unpin for MoleculeParseError<'a>
impl<'a> UnwindSafe for MoleculeParseError<'a>
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