pub enum YearDiscovered {
Ancient,
Known(u16),
}Expand description
The year in which an element was discovered, if known
Variants§
Ancient
Element known since ancient times, year of discovery not known
Known(u16)
Common Era year in which the element was discovered
Trait Implementations§
Source§impl Clone for YearDiscovered
impl Clone for YearDiscovered
Source§fn clone(&self) -> YearDiscovered
fn clone(&self) -> YearDiscovered
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 YearDiscovered
impl Debug for YearDiscovered
Source§impl Display for YearDiscovered
impl Display for YearDiscovered
Source§impl Hash for YearDiscovered
impl Hash for YearDiscovered
Source§impl Ord for YearDiscovered
impl Ord for YearDiscovered
Source§fn cmp(&self, other: &YearDiscovered) -> Ordering
fn cmp(&self, other: &YearDiscovered) -> 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 YearDiscovered
impl PartialEq for YearDiscovered
Source§impl PartialOrd for YearDiscovered
impl PartialOrd for YearDiscovered
impl Copy for YearDiscovered
impl Eq for YearDiscovered
impl StructuralPartialEq for YearDiscovered
Auto Trait Implementations§
impl Freeze for YearDiscovered
impl RefUnwindSafe for YearDiscovered
impl Send for YearDiscovered
impl Sync for YearDiscovered
impl Unpin for YearDiscovered
impl UnwindSafe for YearDiscovered
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