1 viewer
rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off
crates/cre8-app-prediction/src/ballot_store.rs
Items
const KIND_RESOLUTION_BALLOT enum BallotStatus struct StoredBallot impl StoredBallot
Functions
By call-graph weight (PageRank; 1.0 is the average function). 20 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| derive_ballot_idsrc/ballot_store.rs:37 | fn | 4 | 1 | 4 | 1 | 3.5 | |
| StoredBallot::newsrc/ballot_store.rs:70 | method | 13 | 1 | 7 | 1 | 2 | |
| list_ballotssrc/ballot_store.rs:145 | fn | 10 | 3 | 3 | 4 | 2 | |
| list_open_ballotssrc/ballot_store.rs:156 | fn | 6 | 1 | 5 | 2 | 1.9 | |
| find_open_ballot_for_eventsrc/ballot_store.rs:166 | fn | 5 | 2 | 7 | 2 | 1.2 | |
| ballot_vidsrc/ballot_store.rs:31 | fn | 3 | 1 | 2 | 0 | 1.2 | |
| upsert_ballotsrc/ballot_store.rs:110 | fn | 26 | 4 | 4 | 2 | 1.2 | |
| parse_ballotsrc/ballot_store.rs:186 | fn | 16 | 1 | 2 | 0 | 1.1 | |
| with_ballot_mutsrc/ballot_store.rs:174 | fn | 11 | 1 | 4 | 3 | 1 | |
| StoredBallot::has_votedsrc/ballot_store.rs:103 | method | 3 | 1 | 3 | 0 | 1 | |
| load_ballotsrc/ballot_store.rs:137 | fn | 7 | 1 | 2 | 4 | 1 | |
| StoredBallot::as_ballotsrc/ballot_store.rs:87 | method | 7 | 1 | 3 | 0 | 0.8 | |
| StoredBallot::merge_from_ballotsrc/ballot_store.rs:98 | method | 3 | 1 | 3 | 0 | 0.8 | |
| derive_ballot_id_is_deterministicsrc/ballot_store.rs:208 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| derive_ballot_id_distinct_per_eventsrc/ballot_store.rs:216 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| derive_ballot_id_distinct_per_open_tssrc/ballot_store.rs:223 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| new_ballot_starts_open_with_no_votessrc/ballot_store.rs:230 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| min_quorum_clamps_to_onesrc/ballot_store.rs:240 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| has_voted_detects_repeatssrc/ballot_store.rs:246 | fn | 15 | 1 | 0 | 2 | 0.5 | |
| as_ballot_round_trips_through_pure_structsrc/ballot_store.rs:263 | fn | 17 | 1 | 0 | 5 | 0.5 |
Source not readable from this process.