pub enum NodeError {
InvalidHydrogen(u8),
UndefinedHydrogen,
InvalidAromaticElement(AtomSymbol),
InvalidClass(u16),
UndefinedAromatic,
BondOrderMandatoryForOrganicAtom,
AtomError(AtomError),
}Expand description
Errors that can occur when creating or manipulating a node.
Variants§
InvalidHydrogen(u8)
The specified hydrogen count is invalid.
UndefinedHydrogen
The hydrogen count was not defined when required.
InvalidAromaticElement(AtomSymbol)
InvalidClass(u16)
The specified atom class is invalid.
UndefinedAromatic
Aromaticity was not defined when required.
BondOrderMandatoryForOrganicAtom
Bond order is mandatory for organic atoms.
AtomError(AtomError)
Error from the underlying atom.
Trait Implementations§
Source§impl Error for NodeError
impl Error for NodeError
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 From<NodeError> for MoleculeError
impl From<NodeError> for MoleculeError
Source§impl From<NodeError> for ParserError
impl From<NodeError> for ParserError
impl StructuralPartialEq for NodeError
Auto Trait Implementations§
impl Freeze for NodeError
impl RefUnwindSafe for NodeError
impl Send for NodeError
impl Sync for NodeError
impl Unpin for NodeError
impl UnsafeUnpin for NodeError
impl UnwindSafe for NodeError
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