pub enum InchiParseError {
InvalidFormat,
InvalidFormula,
InvalidConnectivity,
InvalidHydrogen,
Unsupported(String),
}Expand description
Error type for InChI parsing.
Variants§
InvalidFormat
Invalid InChI format or prefix.
InvalidFormula
Failed to parse formula layer.
InvalidConnectivity
Failed to parse connectivity layer.
InvalidHydrogen
Failed to parse hydrogen layer.
Unsupported(String)
Unsupported or unrecognised InChI feature.
Trait Implementations§
Source§impl Clone for InchiParseError
impl Clone for InchiParseError
Source§fn clone(&self) -> InchiParseError
fn clone(&self) -> InchiParseError
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 InchiParseError
impl Debug for InchiParseError
Source§impl Display for InchiParseError
impl Display for InchiParseError
impl Eq for InchiParseError
Source§impl Error for InchiParseError
impl Error for InchiParseError
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 PartialEq for InchiParseError
impl PartialEq for InchiParseError
Source§fn eq(&self, other: &InchiParseError) -> bool
fn eq(&self, other: &InchiParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InchiParseError
Auto Trait Implementations§
impl Freeze for InchiParseError
impl RefUnwindSafe for InchiParseError
impl Send for InchiParseError
impl Sync for InchiParseError
impl Unpin for InchiParseError
impl UnsafeUnpin for InchiParseError
impl UnwindSafe for InchiParseError
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