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-app-molecule/src/compound.rs
Items
const ORIGIN_PUBCHEM const ORIGIN_FIXTURE const KEY_PREFIX const CID_PREFIX struct Compound struct ElementShare impl Compound impl ElementShare
Functions
By call-graph weight (PageRank; 1.0 is the average function). 22 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| Compound::from_provider_recordsrc/compound.rs:108 | method | 61 | 3 | 3 | 2 | 2 | |
| Compound::structure_payloadsrc/compound.rs:229 | method | 27 | 2 | 5 | 0 | 1.5 | |
| cid_from_referencesrc/compound.rs:82 | fn | 8 | 3 | 4 | 0 | 1.4 | |
| textsrc/compound.rs:91 | fn | 3 | 1 | 1 | 0 | 1.3 | |
| numbersrc/compound.rs:95 | fn | 8 | 3 | 1 | 0 | 1.3 | |
| caffeinesrc/compound.rs:307 | fn | 3 | 1 | 4 | 1 | 1.2 | |
| is_inchikeysrc/compound.rs:72 | fn | 8 | 5 | 3 | 0 | 1.2 | |
| Compound::is_fixturesrc/compound.rs:170 | method | 3 | 1 | 5 | 0 | 1.1 | |
| Compound::atom_countsrc/compound.rs:190 | method | 3 | 1 | 6 | 0 | 1 | |
| Compound::compositionsrc/compound.rs:260 | method | 28 | 5 | 3 | 1 | 1 | |
| Compound::bond_countsrc/compound.rs:194 | method | 3 | 1 | 4 | 0 | 0.9 | |
| inchikey_keysrc/compound.rs:66 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| Compound::formula_textsrc/compound.rs:176 | method | 5 | 1 | 4 | 1 | 0.8 | |
| Compound::weightsrc/compound.rs:184 | method | 5 | 1 | 0 | 1 | 0.5 | |
| Compound::to_jsonsrc/compound.rs:199 | method | 26 | 1 | 0 | 0 | 0.5 | |
| ElementShare::to_jsonsrc/compound.rs:291 | method | 9 | 1 | 0 | 0 | 0.5 | |
| references_classify_as_cid_or_inchikeysrc/compound.rs:312 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| provider_record_reads_into_a_compoundsrc/compound.rs:326 | fn | 13 | 1 | 0 | 4 | 0.5 | |
| a_record_without_key_or_label_is_refused_and_a_broken_structure_droppedsrc/compound.rs:341 | fn | 26 | 1 | 0 | 3 | 0.5 | |
| structure_payload_has_the_renderer_shapesrc/compound.rs:369 | fn | 27 | 3 | 0 | 2 | 0.5 | |
| aromatic_bonds_are_order_one_and_flaggedsrc/compound.rs:398 | fn | 11 | 1 | 0 | 2 | 0.5 | |
| composition_counts_atoms_and_splits_the_masssrc/compound.rs:411 | fn | 10 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.