[−][src]Enum periodic_table_on_an_enum::Element
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations
impl Element
[src]
pub fn get_oxidation_states(&self) -> &'static [i8]
[src]
pub unsafe fn from_id(id: u8) -> Element
[src]
The id is the atomic number starting at zero
pub fn from_symbol(sym: &str) -> Option<Element>
[src]
pub fn from_name(name: &str) -> Option<Element>
[src]
Name must be lowercase
pub fn from_name_case_insensitive(name: &str) -> Option<Element>
[src]
pub fn from_atomic_number(z: usize) -> Option<Element>
[src]
pub fn get_atomic_number(&self) -> usize
[src]
pub fn get_atomic_mass(&self) -> f32
[src]
pub fn get_atomic_radius(&self) -> u16
[src]
pub fn get_electronegativity(&self) -> f32
[src]
pub fn get_electron_affinity(&self) -> f32
[src]
pub fn get_electron_configuration(&self) -> &'static str
[src]
👎 Deprecated
pub fn get_electronic_configuration(&self) -> ElectronicConfiguration
[src]
pub fn get_electronic_configuration_str(&self) -> &'static str
[src]
pub fn get_ionization_energy(&self) -> f32
[src]
pub fn get_density(&self) -> f32
[src]
pub fn get_melting_point(&self) -> f32
[src]
pub fn get_boiling_point(&self) -> f32
[src]
pub fn get_standard_state(&self) -> StateOfMatter
[src]
pub fn get_symbol(&self) -> &'static str
[src]
pub fn get_name(&self) -> &'static str
[src]
pub fn get_year_discovered(&self) -> u16
[src]
pub fn get_group(&self) -> GroupBlock
[src]
pub fn get_cpk(&self) -> [u8; 3]
[src]
pub fn get_id(&self) -> u8
[src]
The id is the atomic number starting at zero
Trait Implementations
impl Clone for Element
[src]
impl Copy for Element
[src]
impl Debug for Element
[src]
impl Eq for Element
[src]
impl Hash for Element
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Element
[src]
fn cmp(&self, other: &Element) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Element> for Element
[src]
impl PartialOrd<Element> for Element
[src]
fn partial_cmp(&self, other: &Element) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Element
[src]
impl StructuralPartialEq for Element
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,