pub enum MolError {
InvalidAtomIdx(AtomIdx),
DuplicateBond(AtomIdx, AtomIdx),
}Expand description
Error types for molecule construction.
Variants§
InvalidAtomIdx(AtomIdx)
Atom index out of range.
DuplicateBond(AtomIdx, AtomIdx)
Duplicate bond between the same pair of atoms.
Trait Implementations§
impl Eq for MolError
Source§impl Error for MolError
impl Error for MolError
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 MolError
Auto Trait Implementations§
impl Freeze for MolError
impl RefUnwindSafe for MolError
impl Send for MolError
impl Sync for MolError
impl Unpin for MolError
impl UnsafeUnpin for MolError
impl UnwindSafe for MolError
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