pub enum GraphValidationError {
MissingAtom {
atom_id: usize,
},
SelfBondingAtom {
atom_id: usize,
},
}Expand description
Errors that describe structural or logical issues with the input MolecularGraph.
These failures are detected before any chemical reasoning is attempted so that malformed inputs can be rejected early with precise diagnostics.
Variants§
MissingAtom
A bond references an atom identifier that is missing from the graph.
SelfBondingAtom
An atom record lists itself as one of its bonded neighbors.
Trait Implementations§
Source§impl Debug for GraphValidationError
impl Debug for GraphValidationError
Source§impl Display for GraphValidationError
impl Display for GraphValidationError
Source§impl Error for GraphValidationError
impl Error for GraphValidationError
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 From<GraphValidationError> for TyperError
impl From<GraphValidationError> for TyperError
Source§fn from(source: GraphValidationError) -> Self
fn from(source: GraphValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphValidationError
impl RefUnwindSafe for GraphValidationError
impl Send for GraphValidationError
impl Sync for GraphValidationError
impl Unpin for GraphValidationError
impl UnwindSafe for GraphValidationError
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