[−][src]Struct gchemol::Atom
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]
P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>,
S: Into<AtomKind>,
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]
P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>,
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]
P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>,
TODO: momentum, momenta
pub fn set_label<S>(&mut self, lbl: S) where
S: Into<String>,
[src]
S: Into<String>,
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]
S: Into<AtomKind>,
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]
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]
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]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Atom, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Atom, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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]
P: Into<Matrix<f64, U3, U1, <DefaultAllocator as Allocator<f64, U3, U1>>::Buffer>>,
S: Into<AtomKind>,
impl FromStr for Atom
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(line: &str) -> Result<Atom, Error>
[src]
impl Serialize for Atom
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,