pub struct Molecule<'a> {
pub comment: Cow<'a, str>,
pub atoms: Vec<Atom<'a>>,
}
Expand description
A molecule
Fields§
§comment: Cow<'a, str>
§atoms: Vec<Atom<'a>>
Implementations§
Source§impl<'a> Molecule<'a>
impl<'a> Molecule<'a>
pub fn parse(string: &'a str) -> Result<Self, MoleculeParseError<'_>>
pub fn into_owned(self) -> Molecule<'static>
pub fn symbols(&self) -> impl ExactSizeIterator<Item = &str>
pub fn coordinates(&self) -> impl ExactSizeIterator<Item = [Decimal; 3]> + '_
Trait Implementations§
impl<'a> Eq for Molecule<'a>
impl<'a> StructuralPartialEq for Molecule<'a>
Auto Trait Implementations§
impl<'a> Freeze for Molecule<'a>
impl<'a> RefUnwindSafe for Molecule<'a>
impl<'a> Send for Molecule<'a>
impl<'a> Sync for Molecule<'a>
impl<'a> Unpin for Molecule<'a>
impl<'a> UnwindSafe for Molecule<'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