Struct chemrust_core::data::atom::Atom
source · pub struct Atom { /* private fields */ }Implementations§
source§impl Atom
impl Atom
pub fn new_builder() -> AtomBuilder<Pending>
pub fn symbol(&self) -> &str
pub fn atomic_number(&self) -> u8
pub fn cartesian_coord(&self) -> Point3<f64>
pub fn index(&self) -> usize
pub fn set_index(&mut self, index: usize)
pub fn set_cartesian_coord(&mut self, cartesian_coord: Point3<f64>)
pub fn set_atomic_number(&mut self, atomic_number: u8)
pub fn set_symbol(&mut self, symbol: String)
Trait Implementations§
source§impl PartialEq for Atom
impl PartialEq for Atom
source§impl PartialOrd for Atom
impl PartialOrd for Atom
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for Atom
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin 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
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.