pub struct Atom<'a> {
pub symbol: Cow<'a, str>,
pub x: Decimal,
pub y: Decimal,
pub z: Decimal,
}
Expand description
An atom in a molecule
Fields§
§symbol: Cow<'a, str>
§x: Decimal
§y: Decimal
§z: Decimal
Implementations§
Source§impl<'a> Atom<'a>
impl<'a> Atom<'a>
pub fn parse(string: &'a str) -> Result<Self, AtomParseError<'_>>
pub fn into_owned(self) -> Atom<'static>
pub fn coordinates(&self) -> [Decimal; 3]
Trait Implementations§
impl<'a> Eq for Atom<'a>
impl<'a> StructuralPartialEq for Atom<'a>
Auto Trait Implementations§
impl<'a> Freeze for Atom<'a>
impl<'a> RefUnwindSafe for Atom<'a>
impl<'a> Send for Atom<'a>
impl<'a> Sync for Atom<'a>
impl<'a> Unpin for Atom<'a>
impl<'a> UnwindSafe for Atom<'a>
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