Skip to content
1 viewer

rust 1,884,365 · typescript 233,004 · javascript 136,768 · python 22,871 · 6,554 files · digest 44b2b1fea8fb · built in 13 s · crystals off

crates/cre8-app-proposal/src/model.rs

cre8-app-proposal · module model · src · 297 lines (162 code, 122 comment) · sha 2679f5280541708b

Items

enum ProposalScope impl ProposalScope struct ProposalAlternative enum WeightingScheme impl Default for WeightingScheme enum TallyStrategy impl TallyStrategy enum ProposalStatus enum VoteChoice struct VoteVertex struct ProposalVertex enum ProposalError

Functions

By call-graph weight (PageRank; 1.0 is the average function). 7 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
TallyStrategy::simple_majoritysrc/model.rs:134method311301.6
ProposalScope::tagsrc/model.rs:27method73100.8
TallyStrategy::approvalsrc/model.rs:149method31400.7
TallyStrategy::supermajoritysrc/model.rs:143method31100.6
TallyStrategy::unanimoussrc/model.rs:146method31100.6
ProposalScope::idsrc/model.rs:22method51000.5
WeightingScheme::defaultsrc/model.rs:93trait impl31000.5

Source not readable from this process.