| 1 | use super::Element; |
| 2 | |
| 3 | impl Element { |
| 4 | /// Returns the name of the element in English. |
| 5 | /// |
| 6 | /// ``` |
| 7 | /// use mendeleev::Element; |
| 8 | /// assert_eq!(Element::H.name(), "Hydrogen"); |
| 9 | /// ``` |
| 10 | pub const fn name(&self) -> &'static str { |
| 11 | match self { |
| 12 | Element::H => "Hydrogen", |
| 13 | Element::He => "Helium", |
| 14 | Element::Li => "Lithium", |
| 15 | Element::Be => "Beryllium", |
| 16 | Element::B => "Boron", |
| 17 | Element::C => "Carbon", |
| 18 | Element::N => "Nitrogen", |
| 19 | Element::O => "Oxygen", |
| 20 | Element::F => "Fluorine", |
| 21 | Element::Ne => "Neon", |
| 22 | Element::Na => "Sodium", |
| 23 | Element::Mg => "Magnesium", |
| 24 | Element::Al => "Aluminum", |
| 25 | Element::Si => "Silicon", |
| 26 | Element::P => "Phosphorus", |
| 27 | Element::S => "Sulfur", |
| 28 | Element::Cl => "Chlorine", |
| 29 | Element::Ar => "Argon", |
| 30 | Element::K => "Potassium", |
| 31 | Element::Ca => "Calcium", |
| 32 | Element::Sc => "Scandium", |
| 33 | Element::Ti => "Titanium", |
| 34 | Element::V => "Vanadium", |
| 35 | Element::Cr => "Chromium", |
| 36 | Element::Mn => "Manganese", |
| 37 | Element::Fe => "Iron", |
| 38 | Element::Co => "Cobalt", |
| 39 | Element::Ni => "Nickel", |
| 40 | Element::Cu => "Copper", |
| 41 | Element::Zn => "Zinc", |
| 42 | Element::Ga => "Gallium", |
| 43 | Element::Ge => "Germanium", |
| 44 | Element::As => "Arsenic", |
| 45 | Element::Se => "Selenium", |
| 46 | Element::Br => "Bromine", |
| 47 | Element::Kr => "Krypton", |
| 48 | Element::Rb => "Rubidium", |
| 49 | Element::Sr => "Strontium", |
| 50 | Element::Y => "Yttrium", |
| 51 | Element::Zr => "Zirconium", |
| 52 | Element::Nb => "Niobium", |
| 53 | Element::Mo => "Molybdenum", |
| 54 | Element::Tc => "Technetium", |
| 55 | Element::Ru => "Ruthenium", |
| 56 | Element::Rh => "Rhodium", |
| 57 | Element::Pd => "Palladium", |
| 58 | Element::Ag => "Silver", |
| 59 | Element::Cd => "Cadmium", |
| 60 | Element::In => "Indium", |
| 61 | Element::Sn => "Tin", |
| 62 | Element::Sb => "Antimony", |
| 63 | Element::Te => "Tellurium", |
| 64 | Element::I => "Iodine", |
| 65 | Element::Xe => "Xenon", |
| 66 | Element::Cs => "Cesium", |
| 67 | Element::Ba => "Barium", |
| 68 | Element::La => "Lanthanum", |
| 69 | Element::Ce => "Cerium", |
| 70 | Element::Pr => "Praseodymium", |
| 71 | Element::Nd => "Neodymium", |
| 72 | Element::Pm => "Promethium", |
| 73 | Element::Sm => "Samarium", |
| 74 | Element::Eu => "Europium", |
| 75 | Element::Gd => "Gadolinium", |
| 76 | Element::Tb => "Terbium", |
| 77 | Element::Dy => "Dysprosium", |
| 78 | Element::Ho => "Holmium", |
| 79 | Element::Er => "Erbium", |
| 80 | Element::Tm => "Thulium", |
| 81 | Element::Yb => "Ytterbium", |
| 82 | Element::Lu => "Lutetium", |
| 83 | Element::Hf => "Hafnium", |
| 84 | Element::Ta => "Tantalum", |
| 85 | Element::W => "Tungsten", |
| 86 | Element::Re => "Rhenium", |
| 87 | Element::Os => "Osmium", |
| 88 | Element::Ir => "Iridium", |
| 89 | Element::Pt => "Platinum", |
| 90 | Element::Au => "Gold", |
| 91 | Element::Hg => "Mercury", |
| 92 | Element::Tl => "Thallium", |
| 93 | Element::Pb => "Lead", |
| 94 | Element::Bi => "Bismuth", |
| 95 | Element::Po => "Polonium", |
| 96 | Element::At => "Astatine", |
| 97 | Element::Rn => "Radon", |
| 98 | Element::Fr => "Francium", |
| 99 | Element::Ra => "Radium", |
| 100 | Element::Ac => "Actinium", |
| 101 | Element::Th => "Thorium", |
| 102 | Element::Pa => "Protactinium", |
| 103 | Element::U => "Uranium", |
| 104 | Element::Np => "Neptunium", |
| 105 | Element::Pu => "Plutonium", |
| 106 | Element::Am => "Americium", |
| 107 | Element::Cm => "Curium", |
| 108 | Element::Bk => "Berkelium", |
| 109 | Element::Cf => "Californium", |
| 110 | Element::Es => "Einsteinium", |
| 111 | Element::Fm => "Fermium", |
| 112 | Element::Md => "Mendelevium", |
| 113 | Element::No => "Nobelium", |
| 114 | Element::Lr => "Lawrencium", |
| 115 | Element::Rf => "Rutherfordium", |
| 116 | Element::Db => "Dubnium", |
| 117 | Element::Sg => "Seaborgium", |
| 118 | Element::Bh => "Bohrium", |
| 119 | Element::Hs => "Hassium", |
| 120 | Element::Mt => "Meitnerium", |
| 121 | Element::Ds => "Darmstadtium", |
| 122 | Element::Rg => "Roentgenium", |
| 123 | Element::Cn => "Copernicium", |
| 124 | Element::Nh => "Nihonium", |
| 125 | Element::Fl => "Flerovium", |
| 126 | Element::Mc => "Moscovium", |
| 127 | Element::Lv => "Livermorium", |
| 128 | Element::Ts => "Tennessine", |
| 129 | Element::Og => "Oganesson", |
| 130 | } |
| 131 | } |
| 132 | } |