(self)
| 77 | } |
| 78 | |
| 79 | pub fn score(self) -> u32 { |
| 80 | let base = self.left.protons + self.right.protons; |
| 81 | match self.kind { |
| 82 | BondKind::Single => base, |
| 83 | BondKind::Double => base * 2, |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | pub fn make_bond(left: Atom, right: Atom, kind: BondKind) -> Bond { |
nothing calls this directly
no outgoing calls
no test coverage detected