use std::fmt;
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum BondKind {
Covalent,
Ionic,
Metallic,
Coordinate,
Hydrogen,
Aromatic,
VanDerWaals,
DipoleDipole,
LondonDispersion,
Unknown,
}
impl fmt::Display for BondKind {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
let value = match self {
Self::Covalent => "covalent",
Self::Ionic => "ionic",
Self::Metallic => "metallic",
Self::Coordinate => "coordinate",
Self::Hydrogen => "hydrogen",
Self::Aromatic => "aromatic",
Self::VanDerWaals => "van der Waals",
Self::DipoleDipole => "dipole-dipole",
Self::LondonDispersion => "London dispersion",
Self::Unknown => "unknown",
};
formatter.write_str(value)
}
}