[][src]Struct chembasics::Ion

pub struct Ion { /* fields omitted */ }

Methods

impl Ion[src]

pub fn new(element: Element, charge: i8) -> Ion[src]

pub fn get_element(&self) -> &Element[src]

pub fn get_element_mut(&mut self) -> &mut Element[src]

pub fn set_element(&mut self, element: Element)[src]

pub fn get_charge(&self) -> &i8[src]

pub fn get_charge_mut(&mut self) -> &mut i8[src]

pub fn set_charge(&mut self, charge: i8)[src]

Trait Implementations

impl AsMut<Element> for Ion[src]

impl AsMut<Ion> for Isotope[src]

impl AsRef<Element> for Ion[src]

impl AsRef<Ion> for Isotope[src]

impl Clone for Ion[src]

impl Copy for Ion[src]

impl Debug for Ion[src]

impl Eq for Ion[src]

impl From<Element> for Ion[src]

impl From<Ion> for Isotope[src]

impl Hash for Ion[src]

impl Ord for Ion[src]

impl PartialEq<Ion> for Ion[src]

impl PartialOrd<Ion> for Ion[src]

impl StructuralEq for Ion[src]

impl StructuralPartialEq for Ion[src]

Auto Trait Implementations

impl RefUnwindSafe for Ion

impl Send for Ion

impl Sync for Ion

impl Unpin for Ion

impl UnwindSafe for Ion

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, 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.