pub struct CompendiumElement {
pub element: String,
pub atom_fraction: f64,
pub isotopes: Vec<CompendiumIsotope>,
}Expand description
One elemental constituent.
Fields§
§element: StringElement symbol ("H", "Fe").
atom_fraction: f64Atom fraction of the element in the whole material.
isotopes: Vec<CompendiumIsotope>Isotope rows of this element.
Trait Implementations§
Source§impl Clone for CompendiumElement
impl Clone for CompendiumElement
Source§fn clone(&self) -> CompendiumElement
fn clone(&self) -> CompendiumElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompendiumElement
impl Debug for CompendiumElement
Source§impl<'de> Deserialize<'de> for CompendiumElement
impl<'de> Deserialize<'de> for CompendiumElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompendiumElement
impl RefUnwindSafe for CompendiumElement
impl Send for CompendiumElement
impl Sync for CompendiumElement
impl Unpin for CompendiumElement
impl UnsafeUnpin for CompendiumElement
impl UnwindSafe for CompendiumElement
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