pub enum PerceptionError {
KekulizationFailed {
message: String,
},
HybridizationInference {
atom_id: usize,
},
Other(String),
}Expand description
Errors raised while running the staged chemical perception pipeline.
Each variant corresponds to a logical section of perception so that downstream callers can attribute failures to the relevant chemical heuristic.
Variants§
KekulizationFailed
No valid Kekulé structure satisfied the aromatic subgraph constraints.
HybridizationInference
Hybridization inference could not determine an sp/sp2/sp3 class for an atom.
Other(String)
Catch-all variant for perception failures that do not fit the other buckets.
Trait Implementations§
Source§impl Debug for PerceptionError
impl Debug for PerceptionError
Source§impl Display for PerceptionError
impl Display for PerceptionError
Source§impl Error for PerceptionError
impl Error for PerceptionError
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()
Auto Trait Implementations§
impl Freeze for PerceptionError
impl RefUnwindSafe for PerceptionError
impl Send for PerceptionError
impl Sync for PerceptionError
impl Unpin for PerceptionError
impl UnwindSafe for PerceptionError
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