pub enum KekulizeError {
UnkekulizedAtoms {
atoms: Vec<AtomId>,
},
NonRingAromaticAtom {
atom: AtomId,
},
ProtocolDebt {
branch: &'static str,
reason: &'static str,
},
ValenceChanged {
atom: AtomId,
before: i32,
after: i32,
},
FragmentBitsetSizeMismatch {
atoms: usize,
bonds: usize,
},
CanonicalRankSymbolSizeMismatch {
kind: &'static str,
expected: usize,
actual: usize,
},
RingFinding(RingFindingError),
Valence(ValenceError),
}Variants§
UnkekulizedAtoms
NonRingAromaticAtom
ProtocolDebt
ValenceChanged
FragmentBitsetSizeMismatch
CanonicalRankSymbolSizeMismatch
RingFinding(RingFindingError)
Valence(ValenceError)
Trait Implementations§
Source§impl Clone for KekulizeError
impl Clone for KekulizeError
Source§fn clone(&self) -> KekulizeError
fn clone(&self) -> KekulizeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KekulizeError
impl Debug for KekulizeError
Source§impl Display for KekulizeError
impl Display for KekulizeError
impl Eq for KekulizeError
Source§impl Error for KekulizeError
impl Error for KekulizeError
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<KekulizeError> for MmffMolPropertiesError
impl From<KekulizeError> for MmffMolPropertiesError
Source§fn from(source: KekulizeError) -> MmffMolPropertiesError
fn from(source: KekulizeError) -> MmffMolPropertiesError
Converts to this type from the input type.
Source§impl From<KekulizeError> for SmilesWriteError
impl From<KekulizeError> for SmilesWriteError
Source§fn from(source: KekulizeError) -> SmilesWriteError
fn from(source: KekulizeError) -> SmilesWriteError
Converts to this type from the input type.
Source§impl From<RingFindingError> for KekulizeError
impl From<RingFindingError> for KekulizeError
Source§fn from(source: RingFindingError) -> KekulizeError
fn from(source: RingFindingError) -> KekulizeError
Converts to this type from the input type.
Source§impl From<ValenceError> for KekulizeError
impl From<ValenceError> for KekulizeError
Source§fn from(source: ValenceError) -> KekulizeError
fn from(source: ValenceError) -> KekulizeError
Converts to this type from the input type.
Source§impl PartialEq for KekulizeError
impl PartialEq for KekulizeError
Source§fn eq(&self, other: &KekulizeError) -> bool
fn eq(&self, other: &KekulizeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KekulizeError
Auto Trait Implementations§
impl Freeze for KekulizeError
impl RefUnwindSafe for KekulizeError
impl Send for KekulizeError
impl Sync for KekulizeError
impl Unpin for KekulizeError
impl UnsafeUnpin for KekulizeError
impl UnwindSafe for KekulizeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more