purr::valence
pub fn valence(bonds: &Vec<Bond>) -> u8
Returns the sum of bond orders using this model: