1 viewer
rust 1,863,595 · typescript 235,976 · javascript 133,240 · python 20,426 · 6,417 files · digest b3b8c6dd2bb2 · built in 2.5 s · crystals off
crates/cre8-app-charter-model/src/contribution.rs
Items
enum ContributionTrigger const MAX_LIMIT_UNITS struct ContributionLimits impl ContributionLimits struct ContributionRule impl ContributionRule
Functions
By call-graph weight (PageRank; 1.0 is the average function). 14 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| ContributionRule::mint_mapsrc/contribution.rs:139 | method | 37 | 10 | 4 | 2 | 2.4 | |
| rulesrc/contribution.rs:207 | fn | 17 | 1 | 6 | 0 | 2.2 | |
| ContributionLimits::tierssrc/contribution.rs:38 | method | 3 | 1 | 2 | 0 | 1.6 | |
| ContributionRule::validatesrc/contribution.rs:83 | method | 54 | 31 | 1 | 2 | 1.5 | |
| componentsrc/contribution.rs:182 | fn | 7 | 3 | 1 | 0 | 1.5 | |
| segmentsrc/contribution.rs:178 | fn | 3 | 4 | 2 | 0 | 1.3 | |
| validate_rulessrc/contribution.rs:190 | fn | 13 | 4 | 4 | 0 | 1 | |
| ContributionLimits::validatesrc/contribution.rs:42 | method | 14 | 5 | 0 | 1 | 0.5 | |
| explicit_rates_preserve_ms_and_round_toward_zerosrc/contribution.rs:225 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| malformed_rates_and_unknown_placeholders_fail_closedsrc/contribution.rs:231 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| overflow_is_an_error_not_a_saturated_rewardsrc/contribution.rs:240 | fn | 5 | 1 | 0 | 2 | 0.5 | |
| duplicate_rule_ids_are_rejectedsrc/contribution.rs:246 | fn | 3 | 1 | 0 | 2 | 0.5 | |
| context_values_require_explicit_selectionsrc/contribution.rs:250 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| limits_validate_positive_and_boundedsrc/contribution.rs:258 | fn | 37 | 2 | 0 | 1 | 0.5 |
Source not readable from this process.