MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / bond_score

Function bond_score

tests/binary/modules/src/main.rs:92–98  ·  view source on GitHub ↗
(bond: Bond)

Source from the content-addressed store, hash-verified

90 }
91
92 pub fn bond_score(bond: Bond) -> u32 {
93 let base = bond.left.protons + bond.right.protons;
94 match bond.kind {
95 BondKind::Single => base,
96 BondKind::Double => base * 2,
97 }
98 }
99
100 pub fn family(order: u32) -> &'static str {
101 if order == 1 {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected