[][src]Struct gchemol::Atom

pub struct Atom {
    pub properties: PropertyStore,
    // some fields omitted
}

Atom is the smallest particle still characterizing a chemical element.

Reference

https://goldbook.iupac.org/html/A/A00493.html

Fields

properties: PropertyStore

Arbitrary property stored in key-value pair. Key is a string type, but it is the responsibility of the user to correctly interpret the value.

Methods

impl Atom[src]

pub fn new<S, P>(s: S, p: P) -> Atom where
    P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>,
    S: Into<AtomKind>, 
[src]

pub fn symbol(&self) -> &str[src]

Return element symbol

pub fn number(&self) -> usize[src]

Return atomic number

pub fn position(&self) -> [f64; 3][src]

Return atom position in 3D Cartesian coordinates

pub fn set_position<P>(&mut self, p: P) where
    P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>, 
[src]

Set atom position in 3D Cartesian coordinates

pub fn kind(&self) -> &AtomKind[src]

Return atom kind.

pub fn momentum(&self) -> [f64; 3][src]

Vector quantity equal to the product of mass and velocity.

pub fn set_momentum<P>(&mut self, m: P) where
    P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>, 
[src]

TODO: momentum, momenta

pub fn set_label<S>(&mut self, lbl: S) where
    S: Into<String>, 
[src]

Set atom label

pub fn label(&self) -> &str[src]

Return the user defined atom label, if not return the elment symbol.

pub fn set_symbol<S>(&mut self, symbol: S) where
    S: Into<AtomKind>, 
[src]

Set atom symbol.

pub fn set_partial_charge(&mut self, c: f64)[src]

Assign atom partial charge, usually for molecular mechanical calculations.

pub fn is_dummy(&self) -> bool[src]

Return true if atom is dummy.

pub fn is_element(&self) -> bool[src]

Return true if atom is an element.

impl Atom[src]

pub fn get_cov_radius(&self) -> Option<f64>[src]

Access covalent radius of atom. Return None if no data available or atom is dummy.

pub fn get_vdw_radius(&self) -> Option<f64>[src]

Access Van der Waals radius of atom. Return None if no data available

pub fn cov_radius(&self) -> Option<f64>[src]

Deprecated:

use get_cov_radius instead

Access covalent radius of atom. Return None if no data available or atom is dummy.

pub fn get_mass(&self) -> Option<f64>[src]

Get mass in atomic mass unit. Return None if atom is dummy.

pub fn vdw_radius(&self) -> Option<f64>[src]

Deprecated:

Use get_vdw_radius instead

Access Van der Waals radius of atom. Return None if no data available

Trait Implementations

impl Clone for Atom[src]

impl Debug for Atom[src]

impl Default for Atom[src]

impl<'de> Deserialize<'de> for Atom[src]

impl Display for Atom[src]

impl<S, P> From<(S, P)> for Atom where
    P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>,
    S: Into<AtomKind>, 
[src]

impl FromStr for Atom[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for Atom[src]

Auto Trait Implementations

impl RefUnwindSafe for Atom

impl Send for Atom

impl Sync for Atom

impl Unpin for Atom

impl UnwindSafe for Atom

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,