pub struct ElectronicConfiguration {
pub noble_gas: Option<Element>,
pub valence_subshells: &'static [Subshell],
}Expand description
The electronic configuration of an atom
Fields§
§noble_gas: Option<Element>The noble gas of the preceding period, if any
valence_subshells: &'static [Subshell]The subshells in the valence shell
Trait Implementations§
Source§impl Clone for ElectronicConfiguration
impl Clone for ElectronicConfiguration
Source§fn clone(&self) -> ElectronicConfiguration
fn clone(&self) -> ElectronicConfiguration
Returns a duplicate of the value. Read more
1.0.0 · 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 ElectronicConfiguration
impl Debug for ElectronicConfiguration
Source§impl Display for ElectronicConfiguration
impl Display for ElectronicConfiguration
Source§fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
Formats the electronic configuration according to the standard notation, with superscripts in utf8.
use mendeleev::Element;
assert_eq!(Element::H.electronic_configuration().to_string(), "1s");
assert_eq!(Element::He.electronic_configuration().to_string(), "1s²");
assert_eq!(Element::Si.electronic_configuration().to_string(), "[Ne] 3s² 3p²");Source§impl Hash for ElectronicConfiguration
impl Hash for ElectronicConfiguration
Source§impl Ord for ElectronicConfiguration
impl Ord for ElectronicConfiguration
Source§fn cmp(&self, other: &ElectronicConfiguration) -> Ordering
fn cmp(&self, other: &ElectronicConfiguration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ElectronicConfiguration
impl PartialEq for ElectronicConfiguration
Source§impl PartialOrd for ElectronicConfiguration
impl PartialOrd for ElectronicConfiguration
impl Copy for ElectronicConfiguration
impl Eq for ElectronicConfiguration
impl StructuralPartialEq for ElectronicConfiguration
Auto Trait Implementations§
impl Freeze for ElectronicConfiguration
impl RefUnwindSafe for ElectronicConfiguration
impl Send for ElectronicConfiguration
impl Sync for ElectronicConfiguration
impl Unpin for ElectronicConfiguration
impl UnwindSafe for ElectronicConfiguration
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