pub enum AtomPrimitive {
Any,
AtomicNum(u8),
ElementAliphatic(Element),
ElementAromatic(Element),
Aromatic,
Aliphatic,
HCount(u8),
Charge(i8),
Ring(Option<usize>),
NotInRing,
Degree(u8),
}Expand description
Primitive atom predicates for SMARTS matching.
Variants§
Any
Match any atom: *.
AtomicNum(u8)
Match by atomic number: #n.
ElementAliphatic(Element)
Match a specific element as aliphatic (uppercase symbol, e.g. C, N).
ElementAromatic(Element)
Match a specific element as aromatic (lowercase symbol, e.g. c, n).
Aromatic
Match any aromatic atom: a.
Aliphatic
Match any aliphatic atom: A.
HCount(u8)
Match total H count: H (= 1) or Hn.
Charge(i8)
Match formal charge: +n or -n.
Ring(Option<usize>)
Atom is in any ring: R. Some(n) = in ring of size n.
NotInRing
Atom is not in any ring: R0.
Degree(u8)
Heavy-atom degree: Dn.
Trait Implementations§
Source§impl Clone for AtomPrimitive
impl Clone for AtomPrimitive
Source§fn clone(&self) -> AtomPrimitive
fn clone(&self) -> AtomPrimitive
Returns a duplicate of the value. Read more
1.0.0 · 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 AtomPrimitive
impl Debug for AtomPrimitive
Source§impl PartialEq for AtomPrimitive
impl PartialEq for AtomPrimitive
impl StructuralPartialEq for AtomPrimitive
Auto Trait Implementations§
impl Freeze for AtomPrimitive
impl RefUnwindSafe for AtomPrimitive
impl Send for AtomPrimitive
impl Sync for AtomPrimitive
impl Unpin for AtomPrimitive
impl UnsafeUnpin for AtomPrimitive
impl UnwindSafe for AtomPrimitive
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