Enum chemistru_elements::element::ElementSymbol
source · pub enum ElementSymbol {
OneDigit(char),
TwoDigit(char, char),
ThreeDigit(char, char, char),
}Variants§
Trait Implementations§
source§impl Clone for ElementSymbol
impl Clone for ElementSymbol
source§fn clone(&self) -> ElementSymbol
fn clone(&self) -> ElementSymbol
Returns a copy 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 ElementSymbol
impl Debug for ElementSymbol
source§impl Ord for ElementSymbol
impl Ord for ElementSymbol
source§fn cmp(&self, other: &ElementSymbol) -> Ordering
fn cmp(&self, other: &ElementSymbol) -> 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 ElementSymbol
impl PartialEq for ElementSymbol
source§fn eq(&self, other: &ElementSymbol) -> bool
fn eq(&self, other: &ElementSymbol) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ElementSymbol
impl PartialOrd for ElementSymbol
source§fn partial_cmp(&self, other: &ElementSymbol) -> Option<Ordering>
fn partial_cmp(&self, other: &ElementSymbol) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl ToString for ElementSymbol
impl ToString for ElementSymbol
impl Copy for ElementSymbol
impl Eq for ElementSymbol
impl StructuralEq for ElementSymbol
impl StructuralPartialEq for ElementSymbol
Auto Trait Implementations§
impl RefUnwindSafe for ElementSymbol
impl Send for ElementSymbol
impl Sync for ElementSymbol
impl Unpin for ElementSymbol
impl UnwindSafe for ElementSymbol
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