[][src]Struct chembasics::EmpiricalFormula

pub struct EmpiricalFormula(_);

Methods

impl EmpiricalFormula[src]

pub fn new(formula: Vec<(Element, usize)>) -> EmpiricalFormula[src]

pub fn from_string(string: &str) -> Result<EmpiricalFormula, ()>[src]

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

Important traits for EmpiricalFormulaIterator<'a>
pub fn iter(&self) -> EmpiricalFormulaIterator[src]

pub fn get(&self, i: usize) -> Option<&(Element, usize)>[src]

pub fn get_mut(&mut self, i: usize) -> Option<&mut (Element, usize)>[src]

pub unsafe fn get_unchecked(&self, i: usize) -> &(Element, usize)[src]

pub unsafe fn get_unchecked_mut(&mut self, i: usize) -> &mut (Element, usize)[src]

Trait Implementations

impl BasicMolecule for EmpiricalFormula[src]

impl Clone for EmpiricalFormula[src]

impl Debug for EmpiricalFormula[src]

impl Display for EmpiricalFormula[src]

impl Eq for EmpiricalFormula[src]

impl Hash for EmpiricalFormula[src]

impl Index<usize> for EmpiricalFormula[src]

type Output = (Element, usize)

The returned type after indexing.

impl IndexMut<usize> for EmpiricalFormula[src]

impl Ord for EmpiricalFormula[src]

impl PartialEq<EmpiricalFormula> for EmpiricalFormula[src]

impl PartialOrd<EmpiricalFormula> for EmpiricalFormula[src]

Auto Trait Implementations

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> From<T> for T[src]

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

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.