rust 1,863,570 · typescript 235,774 · javascript 133,179 · python 20,426 · 6,416 files · digest 72c4f5c61f73 · built in 1.7 s · crystals off
crates/cre8-app-matching-model/src/algebra.rs
Items
const SIDE_SEPARATOR const ARC_SEPARATOR const PAIR_SEPARATOR const LATTICE_MARKET_SEPARATOR const MAX_ASSET_ID_LEN const ASSET_ID_FORBIDDEN const SOULBOUND_REPUTATION const SOULBOUND_BALLOT_PARTICIPATION enum Side impl Side impl Display for Side struct AssetSet impl AssetSet impl Display for AssetSet impl FromStr for AssetSet impl IntoIterator for AssetSet impl From for Vec impl From for BTreeSet impl Serialize for AssetSet impl Deserialize for AssetSet struct Arc impl Arc impl Display for Arc impl FromStr for Arc struct ArcParseError impl Display for ArcParseError impl Error for ArcParseError impl Serialize for Arc impl Deserialize for Arc struct MarketPair impl MarketPair impl Display for MarketPair struct LegVector impl LegVector impl From for BTreeMap enum Conservation impl Conservation struct Ring impl Ring enum RingMeasure impl RingMeasure const RING_TOL
Functions
By call-graph weight (PageRank; 1.0 is the average function). 133 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| Arc::newsrc/algebra.rs:476 | method | 3 | 1 | 255 | 0 | 102 | |
| BTreeMap::fromsrc/algebra.rs:802 | trait impl | 3 | 1 | 125 | 0 | 36.1 | |
| AssetSet::newsrc/algebra.rs:221 | method | 10 | 1 | 9 | 0 | 12.4 | |
| AssetSet::parsesrc/algebra.rs:241 | method | 3 | 1 | 18 | 1 | 11.7 | |
| Arc::split_keysrc/algebra.rs:500 | method | 3 | 1 | 10 | 0 | 10.5 | |
| AssetSet::from_keyssrc/algebra.rs:234 | method | 3 | 1 | 4 | 0 | 9.4 | |
| Arc::parsesrc/algebra.rs:493 | method | 4 | 1 | 18 | 2 | 8.2 | |
| Vec::fromsrc/algebra.rs:419 | trait impl | 3 | 1 | 5 | 0 | 8 | |
| Arc::of_positionsrc/algebra.rs:482 | method | 3 | 1 | 5 | 1 | 7.8 | |
| Arc::of_sidessrc/algebra.rs:486 | method | 4 | 2 | 2 | 1 | 7.7 | |
| BTreeSet::fromsrc/algebra.rs:425 | trait impl | 3 | 1 | 28 | 0 | 6.6 | |
| AssetSet::intersectionsrc/algebra.rs:290 | method | 16 | 5 | 13 | 0 | 5.2 | |
| AssetSet::ranksrc/algebra.rs:250 | method | 3 | 1 | 12 | 0 | 4.9 | |
| RingMeasure::holonomysrc/algebra.rs:948 | method | 6 | 2 | 8 | 0 | 4.8 | |
| soulbound_weight_kindsrc/algebra.rs:118 | fn | 11 | 3 | 3 | 0 | 4.5 | |
| RingMeasure::productsrc/algebra.rs:956 | method | 3 | 1 | 7 | 1 | 4.4 | |
| is_soulbound_assetsrc/algebra.rs:131 | fn | 3 | 1 | 2 | 1 | 4 | |
| sanitize_asset_segmentsrc/algebra.rs:81 | fn | 10 | 7 | 3 | 0 | 3.7 | |
| MarketPair::ofsrc/algebra.rs:612 | method | 7 | 2 | 7 | 0 | 3.6 | |
| validate_asset_idsrc/algebra.rs:58 | fn | 17 | 8 | 8 | 0 | 3.5 | |
| Side::signsrc/algebra.rs:179 | method | 6 | 2 | 5 | 0 | 3.5 | |
| AssetSet::rank_of_keysrc/algebra.rs:386 | method | 3 | 1 | 4 | 0 | 3 | |
| side_spansrc/algebra.rs:447 | fn | 3 | 2 | 3 | 0 | 3 | |
| RingMeasure::signalsrc/algebra.rs:961 | method | 3 | 1 | 4 | 1 | 2.7 | |
| position_spansrc/algebra.rs:455 | fn | 3 | 1 | 4 | 1 | 2.5 | |
| validate_position_assetssrc/algebra.rs:94 | fn | 8 | 3 | 5 | 2 | 2 | |
| AssetSet::is_subset_ofsrc/algebra.rs:271 | method | 14 | 5 | 4 | 0 | 1.7 | |
| route_span_sumsrc/algebra.rs:461 | fn | 3 | 1 | 3 | 1 | 1.7 | |
| AssetSet::unionsrc/algebra.rs:307 | method | 7 | 1 | 4 | 0 | 1.7 | |
| RingMeasure::from_slot_residualssrc/algebra.rs:936 | method | 11 | 5 | 3 | 0 | 1.5 | |
| LegVector::from_sidessrc/algebra.rs:689 | method | 10 | 3 | 3 | 2 | 1.5 | |
| LegVector::zerosrc/algebra.rs:685 | method | 3 | 1 | 3 | 0 | 1.4 | |
| AssetSet::facetssrc/algebra.rs:351 | method | 8 | 2 | 4 | 0 | 1.4 | |
| validate_offer_carries_no_weightsrc/algebra.rs:138 | fn | 19 | 4 | 1 | 3 | 1.3 | |
| Arc::keysrc/algebra.rs:504 | method | 3 | 1 | 2 | 0 | 1.3 | |
| RingMeasure::is_measuredsrc/algebra.rs:970 | method | 3 | 1 | 4 | 0 | 1.3 | |
| setsrc/algebra.rs:984 | fn | 3 | 1 | 5 | 1 | 1.3 | |
| AssetSet::face_ranksrc/algebra.rs:321 | method | 15 | 5 | 2 | 0 | 1.2 | |
| LegVector::arcsrc/algebra.rs:745 | method | 4 | 2 | 3 | 2 | 1.2 | |
| AssetSet::assetssrc/algebra.rs:258 | method | 3 | 1 | 3 | 0 | 1.2 | |
| Arc::rank_shapesrc/algebra.rs:516 | method | 3 | 1 | 1 | 1 | 1.1 | |
| LegVector::add_legsrc/algebra.rs:706 | method | 10 | 4 | 1 | 1 | 1.1 | |
| Arc::feedssrc/algebra.rs:539 | method | 3 | 1 | 1 | 1 | 1 | |
| LegVector::side_setsrc/algebra.rs:735 | method | 3 | 1 | 1 | 1 | 1 | |
| Ring::want_shapesrc/algebra.rs:859 | method | 3 | 1 | 1 | 1 | 1 | |
| AssetSet::subsetssrc/algebra.rs:365 | method | 12 | 3 | 3 | 0 | 0.9 | |
| LegVector::of_positionsrc/algebra.rs:700 | method | 3 | 1 | 6 | 1 | 0.9 | |
| AssetSet::keysrc/algebra.rs:246 | method | 3 | 1 | 1 | 0 | 0.9 | |
| Arc::max_ranksrc/algebra.rs:520 | method | 3 | 1 | 1 | 1 | 0.9 | |
| collect_expr_assetssrc/algebra.rs:158 | fn | 10 | 3 | 1 | 0 | 0.9 | |
| RingMeasure::from_slot_ratessrc/algebra.rs:923 | method | 11 | 6 | 2 | 0 | 0.9 | |
| LegVector::value_undersrc/algebra.rs:776 | method | 3 | 1 | 4 | 0 | 0.8 | |
| LegVector::add_assignsrc/algebra.rs:756 | method | 9 | 3 | 2 | 0 | 0.8 | |
| Ring::newsrc/algebra.rs:835 | method | 3 | 1 | 1 | 0 | 0.8 | |
| Ring::rank_shapesrc/algebra.rs:854 | method | 3 | 1 | 1 | 1 | 0.8 | |
| Arc::rank1_projectionsrc/algebra.rs:551 | method | 3 | 1 | 2 | 0 | 0.8 | |
| AssetSet::distancesrc/algebra.rs:339 | method | 3 | 1 | 1 | 2 | 0.8 | |
| offeringsrc/algebra.rs:1023 | fn | 6 | 1 | 1 | 0 | 0.7 | |
| MarketPair::lattice_keysrc/algebra.rs:626 | method | 3 | 1 | 2 | 0 | 0.7 | |
| MarketPair::is_exchangesrc/algebra.rs:649 | method | 3 | 1 | 2 | 0 | 0.7 | |
| MarketPair::shared_facesrc/algebra.rs:653 | method | 3 | 1 | 2 | 1 | 0.7 | |
| LegVector::sumsrc/algebra.rs:766 | method | 7 | 2 | 3 | 2 | 0.6 | |
| LegVector::conservationsrc/algebra.rs:791 | method | 8 | 3 | 3 | 0 | 0.6 | |
| Ring::parsesrc/algebra.rs:840 | method | 3 | 1 | 2 | 2 | 0.6 | |
| Ring::party_countsrc/algebra.rs:844 | method | 3 | 1 | 2 | 0 | 0.6 | |
| Ring::is_closedsrc/algebra.rs:850 | method | 3 | 2 | 2 | 1 | 0.6 | |
| Ring::span_sumsrc/algebra.rs:886 | method | 3 | 1 | 2 | 2 | 0.6 | |
| AssetSet::is_johnson_adjacentsrc/algebra.rs:344 | method | 3 | 2 | 2 | 2 | 0.6 | |
| LegVector::side_valuesrc/algebra.rs:781 | method | 7 | 1 | 2 | 1 | 0.6 | |
| Arc::spansrc/algebra.rs:529 | method | 3 | 1 | 1 | 2 | 0.6 | |
| Conservation::is_settleablesrc/algebra.rs:820 | method | 3 | 1 | 1 | 0 | 0.6 | |
| LegVector::side_volumesrc/algebra.rs:751 | method | 3 | 1 | 1 | 2 | 0.6 | |
| Ring::shape_keysrc/algebra.rs:865 | method | 15 | 4 | 1 | 1 | 0.6 | |
| Ring::junction_face_rankssrc/algebra.rs:891 | method | 4 | 1 | 1 | 0 | 0.6 | |
| MarketPair::parsesrc/algebra.rs:632 | method | 4 | 1 | 1 | 2 | 0.6 | |
| MarketPair::forwardsrc/algebra.rs:638 | method | 3 | 1 | 1 | 1 | 0.6 | |
| RingMeasure::is_balancedsrc/algebra.rs:966 | method | 3 | 1 | 1 | 1 | 0.6 | |
| AssetSet::side_spansrc/algebra.rs:379 | method | 3 | 1 | 1 | 2 | 0.5 | |
| Side::oppositesrc/algebra.rs:186 | method | 6 | 2 | 0 | 0 | 0.5 | |
| Side::ofsrc/algebra.rs:194 | method | 6 | 2 | 0 | 0 | 0.5 | |
| Side::fmtsrc/algebra.rs:203 | trait impl | 6 | 2 | 0 | 0 | 0.5 | |
| AssetSet::is_emptysrc/algebra.rs:254 | method | 3 | 1 | 0 | 0 | 0.5 | |
| AssetSet::itersrc/algebra.rs:262 | method | 3 | 1 | 0 | 0 | 0.5 | |
| AssetSet::containssrc/algebra.rs:266 | method | 3 | 1 | 0 | 0 | 0.5 | |
| AssetSet::is_disjointsrc/algebra.rs:286 | method | 3 | 1 | 0 | 1 | 0.5 | |
| AssetSet::differencesrc/algebra.rs:316 | method | 3 | 1 | 0 | 0 | 0.5 | |
| AssetSet::fmtsrc/algebra.rs:392 | trait impl | 9 | 3 | 0 | 0 | 0.5 | |
| AssetSet::from_strsrc/algebra.rs:405 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| AssetSet::into_itersrc/algebra.rs:413 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| AssetSet::serializesrc/algebra.rs:431 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| AssetSet::deserializesrc/algebra.rs:437 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| Arc::sidesrc/algebra.rs:508 | method | 6 | 2 | 0 | 0 | 0.5 | |
| Arc::is_classicalsrc/algebra.rs:525 | method | 3 | 2 | 0 | 1 | 0.5 | |
| Arc::reversesrc/algebra.rs:533 | method | 3 | 1 | 0 | 0 | 0.5 | |
| Arc::marketsrc/algebra.rs:545 | method | 3 | 1 | 0 | 1 | 0.5 | |
| Arc::supportsrc/algebra.rs:556 | method | 3 | 1 | 0 | 1 | 0.5 | |
| Arc::fmtsrc/algebra.rs:562 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| Arc::from_strsrc/algebra.rs:569 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| ArcParseError::fmtsrc/algebra.rs:578 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| Arc::serializesrc/algebra.rs:586 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| Arc::deserializesrc/algebra.rs:592 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| MarketPair::keysrc/algebra.rs:621 | method | 3 | 1 | 0 | 0 | 0.5 | |
| MarketPair::reversesrc/algebra.rs:643 | method | 3 | 1 | 0 | 1 | 0.5 | |
| MarketPair::face_ranksrc/algebra.rs:657 | method | 3 | 1 | 0 | 0 | 0.5 | |
| MarketPair::distancesrc/algebra.rs:661 | method | 3 | 1 | 0 | 0 | 0.5 | |
| MarketPair::fmtsrc/algebra.rs:667 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| LegVector::getsrc/algebra.rs:718 | method | 3 | 1 | 0 | 0 | 0.5 | |
| LegVector::entriessrc/algebra.rs:722 | method | 3 | 1 | 0 | 0 | 0.5 | |
| LegVector::is_zerosrc/algebra.rs:726 | method | 3 | 1 | 0 | 0 | 0.5 | |
| LegVector::sidesrc/algebra.rs:731 | method | 3 | 1 | 0 | 1 | 0.5 | |
| LegVector::supportsrc/algebra.rs:740 | method | 3 | 1 | 0 | 0 | 0.5 | |
| Ring::max_ranksrc/algebra.rs:881 | method | 3 | 1 | 0 | 1 | 0.5 | |
| Ring::keyssrc/algebra.rs:896 | method | 3 | 1 | 0 | 1 | 0.5 | |
| Ring::supportsrc/algebra.rs:900 | method | 3 | 1 | 0 | 1 | 0.5 | |
| an_asset_id_may_not_carry_a_key_separator_or_grammar_charactersrc/algebra.rs:989 | fn | 33 | 3 | 0 | 5 | 0.5 | |
| soulbound_weight_is_reputation_and_ballot_participation_onlysrc/algebra.rs:1031 | fn | 22 | 3 | 0 | 2 | 0.5 | |
| validate_position_assets_rejects_rep_offer_legsrc/algebra.rs:1055 | fn | 20 | 3 | 0 | 2 | 0.5 | |
| a_sanitized_segment_always_validatessrc/algebra.rs:1077 | fn | 9 | 2 | 0 | 2 | 0.5 | |
| asset_set_normalizes_every_spelling_to_one_keysrc/algebra.rs:1088 | fn | 8 | 1 | 0 | 3 | 0.5 | |
| asset_set_serializes_as_its_keysrc/algebra.rs:1098 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| set_operations_agree_with_btreesetsrc/algebra.rs:1106 | fn | 22 | 2 | 0 | 7 | 0.5 | |
| facets_and_subsets_have_the_spec_cardinalitiessrc/algebra.rs:1130 | fn | 24 | 7 | 0 | 8 | 0.5 | |
| spans_match_the_frozen_multimarket_metricsrc/algebra.rs:1156 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| arc_key_round_trips_and_is_the_only_double_equals_parsersrc/algebra.rs:1168 | fn | 14 | 1 | 0 | 5 | 0.5 | |
| arc_of_position_needs_both_sidessrc/algebra.rs:1184 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| market_pair_orders_sides_and_reads_both_wire_formssrc/algebra.rs:1194 | fn | 14 | 1 | 0 | 7 | 0.5 | |
| leg_vector_splits_back_into_its_sidessrc/algebra.rs:1210 | fn | 11 | 2 | 0 | 6 | 0.5 | |
| leg_vector_nets_a_self_crossing_assetsrc/algebra.rs:1223 | fn | 11 | 1 | 0 | 3 | 0.5 | |
| value_is_linear_and_unpriced_legs_are_not_freesrc/algebra.rs:1236 | fn | 21 | 3 | 0 | 7 | 0.5 | |
| ring_conservation_is_the_settlement_invariantsrc/algebra.rs:1259 | fn | 20 | 1 | 0 | 5 | 0.5 | |
| ring_holonomy_decides_conservation_under_any_pricessrc/algebra.rs:1287 | fn | 37 | 5 | 0 | 11 | 0.5 | |
| ring_closure_follows_feedssrc/algebra.rs:1326 | fn | 16 | 1 | 0 | 6 | 0.5 | |
| ring_measure_never_reads_missing_evidence_as_a_numbersrc/algebra.rs:1344 | fn | 18 | 1 | 0 | 7 | 0.5 |
Source not readable from this process.