Struct chemistru_elements::element::Element
source · pub struct Element { /* private fields */ }Implementations§
source§impl Element
impl Element
pub fn name(&self) -> String
pub fn symbol(&self) -> String
pub const fn atomic_mass(&self) -> f64
pub const fn atomic_number(&self) -> u8
pub const fn data(&self) -> &'static InnerElement
pub const fn new( name: &'static str, symbol: &'static str, atomic_mass: f64, atomic_number: u8, raw: &'static InnerElement ) -> Self
Trait Implementations§
source§impl PartialEq for Element
impl PartialEq for Element
impl Copy for Element
Auto Trait Implementations§
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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