pub enum AtomKind {
Symbol(Symbol),
Bracket {
isotope: Option<Isotope>,
symbol: Symbol,
configuration: Option<Configuration>,
hcount: Option<VirtualHydrogen>,
charge: Option<Charge>,
map: Option<u16>,
},
}Expand description
Minimal context-sensitive representation of an atom kind.
Variants§
Implementations§
Source§impl AtomKind
impl AtomKind
Sourcepub const fn is_aromatic(&self) -> bool
pub const fn is_aromatic(&self) -> bool
Returns true if the kind was defined as being aromatic.
Sourcepub fn invert_configuration(&mut self)
pub fn invert_configuration(&mut self)
Inverts configuration given if it and at least one implicit hydrogen are present.
§Panics
Panics given a Configuration other than TH1 or TH2.
Trait Implementations§
impl Copy for AtomKind
impl Eq for AtomKind
impl StructuralPartialEq for AtomKind
Auto Trait Implementations§
impl Freeze for AtomKind
impl RefUnwindSafe for AtomKind
impl Send for AtomKind
impl Sync for AtomKind
impl Unpin for AtomKind
impl UnsafeUnpin for AtomKind
impl UnwindSafe for AtomKind
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