pub enum Element {
Show 59 variants
H,
He,
Li,
Be,
B,
C,
N,
O,
F,
Ne,
Na,
Mg,
Al,
Si,
P,
S,
Cl,
Ar,
K,
Ca,
Ti,
V,
Cr,
Mn,
Fe,
Co,
Ni,
Cu,
Zn,
Ga,
Ge,
As,
Se,
Br,
Kr,
Rb,
Sr,
Zr,
Mo,
Ru,
Rh,
Pd,
Ag,
Cd,
In,
Sn,
Sb,
Te,
I,
Xe,
Cs,
Ba,
Pt,
Au,
Hg,
Tl,
Pb,
Bi,
Unknown,
}Expand description
Chemical elements relevant for drug-like molecules.
Variants§
H
He
Li
Be
B
C
N
O
F
Ne
Na
Mg
Al
Si
P
S
Cl
Ar
K
Ca
Ti
V
Cr
Mn
Fe
Co
Ni
Cu
Zn
Ga
Ge
As
Se
Br
Kr
Rb
Sr
Zr
Mo
Ru
Rh
Pd
Ag
Cd
In
Sn
Sb
Te
I
Xe
Cs
Ba
Pt
Au
Hg
Tl
Pb
Bi
Unknown
Implementations§
Source§impl Element
impl Element
Sourcepub fn from_symbol(s: &str) -> Option<Self>
pub fn from_symbol(s: &str) -> Option<Self>
Parse from element symbol string (case-sensitive: “C”, “Cl”, “Br”).
Sourcepub fn atomic_number(&self) -> u8
pub fn atomic_number(&self) -> u8
Atomic number.
Sourcepub fn default_valences(&self) -> &'static [u8] ⓘ
pub fn default_valences(&self) -> &'static [u8] ⓘ
Default valence(s) for implicit hydrogen calculation.
Sourcepub fn is_organic_subset(&self) -> bool
pub fn is_organic_subset(&self) -> bool
Is this an organic subset atom?
Trait Implementations§
impl Copy for Element
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Element
impl UnwindSafe for Element
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.