pub struct Atom {
pub element: Element,
pub charge: i8,
pub isotope: Option<u16>,
pub h_count: u8,
pub explicit_h: Option<u8>,
pub aromatic: bool,
pub in_ring: bool,
pub ring_sizes: SmallVec<[u8; 4]>,
pub map_num: Option<u16>,
}Expand description
A single atom in a molecular graph.
Fields§
§element: Element§charge: i8§isotope: Option<u16>§h_count: u8Total H count (explicit + implicit); assigned after graph construction.
explicit_h: Option<u8>Explicit H count from bracket atom syntax, e.g. [CH3] → Some(3).
None means “no bracket H specification” (compute implicitly).
aromatic: bool§in_ring: bool§ring_sizes: SmallVec<[u8; 4]>§map_num: Option<u16>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnsafeUnpin for Atom
impl UnwindSafe for Atom
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