1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-chem-core/src/lib.rs
Items
struct Atom enum BondOrder impl BondOrder struct Bond struct Molecule struct RenderAtom const UNKNOWN_ELEMENT_SYMBOL impl Molecule
Functions
By call-graph weight (PageRank; 1.0 is the average function). 16 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| Molecule::formulasrc/lib.rs:106 | method | 30 | 8 | 11 | 1 | 2.7 | |
| Molecule::validatesrc/lib.rs:183 | method | 21 | 7 | 4 | 0 | 2.3 | |
| atomsrc/lib.rs:233 | fn | 3 | 1 | 6 | 0 | 1.8 | |
| Molecule::centroidsrc/lib.rs:151 | method | 13 | 4 | 4 | 0 | 1.6 | |
| Molecule::molecular_weightsrc/lib.rs:139 | method | 9 | 1 | 3 | 1 | 1.2 | |
| BondOrder::multiplicitysrc/lib.rs:55 | method | 7 | 3 | 2 | 0 | 1.1 | |
| Molecule::render_atomssrc/lib.rs:208 | method | 19 | 1 | 3 | 2 | 0.8 | |
| Molecule::bounding_radiussrc/lib.rs:167 | method | 12 | 1 | 2 | 1 | 0.7 | |
| hill_order_puts_carbon_then_hydrogen_firstsrc/lib.rs:238 | fn | 15 | 1 | 0 | 2 | 0.5 | |
| formula_without_carbon_is_fully_alphabeticalsrc/lib.rs:255 | fn | 16 | 1 | 0 | 2 | 0.5 | |
| unknown_elements_are_listed_last_and_weigh_nothingsrc/lib.rs:273 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| empty_molecule_has_zero_geometrysrc/lib.rs:280 | fn | 8 | 1 | 0 | 5 | 0.5 | |
| centroid_radius_and_render_atoms_agreesrc/lib.rs:290 | fn | 15 | 1 | 0 | 4 | 0.5 | |
| validate_rejects_bad_bonds_and_coordinatessrc/lib.rs:307 | fn | 16 | 1 | 0 | 2 | 0.5 | |
| bond_order_serializes_lowercase_and_reports_multiplicitysrc/lib.rs:325 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| molecule_round_trips_through_jsonsrc/lib.rs:335 | fn | 9 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.