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-transport-routing/src/provider.rs
Items
struct Coordinate struct RoutingRequest trait RoutingProvider struct OsrmProvider impl OsrmProvider impl RoutingProvider for OsrmProvider struct GoogleRoutingProvider impl GoogleRoutingProvider impl RoutingProvider for GoogleRoutingProvider struct BingRoutingProvider impl BingRoutingProvider impl RoutingProvider for BingRoutingProvider struct NormalizedLeg struct GeodesicRoutingProvider impl GeodesicRoutingProvider impl RoutingProvider for GeodesicRoutingProvider type SharedProvider static REG struct ProviderOverrideGuard impl Drop for ProviderOverrideGuard struct EnvGuard impl EnvGuard impl Drop for EnvGuard static LOCK struct MockProvider impl RoutingProvider for MockProvider
Functions
By call-graph weight (PageRank; 1.0 is the average function). 78 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| override_registrysrc/provider.rs:583 | fn | 4 | 1 | 3 | 0 | 2.7 | |
| nested_f64src/provider.rs:460 | fn | 3 | 1 | 1 | 0 | 1.8 | |
| format_lat_lonsrc/provider.rs:456 | fn | 3 | 1 | 3 | 0 | 1.7 | |
| routing_requestsrc/provider.rs:820 | fn | 10 | 1 | 6 | 0 | 1.6 | |
| google_leg_to_osrmsrc/provider.rs:268 | fn | 11 | 1 | 1 | 1 | 1.6 | |
| bing_resource_to_osrmsrc/provider.rs:387 | fn | 8 | 1 | 1 | 0 | 1.6 | |
| provider_keysrc/provider.rs:442 | fn | 5 | 1 | 2 | 1 | 1.4 | |
| parse_coordinates_strsrc/provider.rs:81 | fn | 19 | 4 | 3 | 0 | 1.3 | |
| google_route_legssrc/provider.rs:260 | fn | 7 | 1 | 1 | 1 | 1.3 | |
| bing_resources_to_routessrc/provider.rs:383 | fn | 3 | 1 | 1 | 1 | 1.3 | |
| resolve_providersrc/provider.rs:611 | fn | 3 | 1 | 3 | 2 | 1.2 | |
| parse_coordinate_itemsrc/provider.rs:48 | fn | 9 | 3 | 1 | 2 | 1.2 | |
| set_provider_overridesrc/provider.rs:590 | fn | 7 | 2 | 4 | 1 | 1.1 | |
| EnvGuard::setsrc/provider.rs:640 | method | 7 | 1 | 4 | 0 | 1 | |
| provider_env_locksrc/provider.rs:669 | fn | 4 | 1 | 4 | 0 | 1 | |
| provider_overridesrc/provider.rs:615 | fn | 4 | 1 | 1 | 1 | 1 | |
| built_in_providersrc/provider.rs:620 | fn | 9 | 5 | 1 | 0 | 1 | |
| parse_coordinate_pairsrc/provider.rs:58 | fn | 8 | 2 | 1 | 0 | 1 | |
| parse_coordinate_objectsrc/provider.rs:67 | fn | 13 | 1 | 1 | 0 | 1 | |
| format_coordinates_strsrc/provider.rs:101 | fn | 3 | 1 | 3 | 0 | 1 | |
| normalize_google_to_osrmsrc/provider.rs:224 | fn | 15 | 1 | 2 | 2 | 1 | |
| normalize_bing_to_osrmsrc/provider.rs:348 | fn | 15 | 1 | 2 | 2 | 1 | |
| bing_route_typesrc/provider.rs:335 | fn | 6 | 2 | 1 | 0 | 1 | |
| google_step_to_osrmsrc/provider.rs:288 | fn | 7 | 1 | 1 | 0 | 0.9 | |
| bing_leg_to_osrmsrc/provider.rs:411 | fn | 8 | 1 | 1 | 0 | 0.9 | |
| bing_step_to_osrmsrc/provider.rs:428 | fn | 7 | 1 | 1 | 0 | 0.9 | |
| nested_valuesrc/provider.rs:464 | fn | 3 | 1 | 1 | 0 | 0.9 | |
| interpolate_geodesicsrc/provider.rs:551 | fn | 27 | 2 | 2 | 0 | 0.9 | |
| ensure_google_statussrc/provider.rs:240 | fn | 9 | 2 | 1 | 0 | 0.9 | |
| google_route_to_osrmsrc/provider.rs:250 | fn | 9 | 1 | 1 | 1 | 0.9 | |
| ensure_bing_statussrc/provider.rs:364 | fn | 11 | 2 | 1 | 0 | 0.9 | |
| bing_set_routessrc/provider.rs:376 | fn | 6 | 1 | 1 | 1 | 0.9 | |
| parse_coordinates_arraysrc/provider.rs:37 | fn | 10 | 3 | 1 | 1 | 0.9 | |
| parse_coordinatessrc/provider.rs:29 | fn | 7 | 3 | 2 | 2 | 0.8 | |
| fetch_text_with_headerssrc/provider.rs:139 | fn | 5 | 1 | 3 | 0 | 0.8 | |
| haversine_distancesrc/provider.rs:538 | fn | 12 | 1 | 1 | 0 | 0.7 | |
| EnvGuard::unsetsrc/provider.rs:648 | method | 7 | 1 | 2 | 0 | 0.7 | |
| google_modesrc/provider.rs:210 | fn | 8 | 4 | 1 | 0 | 0.7 | |
| google_waypointssrc/provider.rs:219 | fn | 4 | 1 | 1 | 1 | 0.7 | |
| ensure_routing_coordinatessrc/provider.rs:448 | fn | 3 | 2 | 2 | 0 | 0.6 | |
| borrowed_querysrc/provider.rs:452 | fn | 3 | 1 | 2 | 0 | 0.6 | |
| set_test_http_responsesrc/provider.rs:161 | fn | 5 | 1 | 1 | 0 | 0.6 | |
| google_maps_keysrc/provider.rs:191 | fn | 7 | 1 | 1 | 1 | 0.6 | |
| google_route_querysrc/provider.rs:199 | fn | 10 | 1 | 1 | 3 | 0.6 | |
| bing_maps_keysrc/provider.rs:323 | fn | 7 | 1 | 1 | 1 | 0.6 | |
| bing_route_urlsrc/provider.rs:331 | fn | 3 | 1 | 1 | 1 | 0.6 | |
| bing_route_querysrc/provider.rs:342 | fn | 5 | 1 | 1 | 1 | 0.6 | |
| OsrmProvider::idsrc/provider.rs:114 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| OsrmProvider::find_routesrc/provider.rs:118 | trait impl | 18 | 1 | 0 | 3 | 0.5 | |
| fetch_text_with_headerssrc/provider.rs:151 | fn | 8 | 1 | 0 | 0 | 0.5 | |
| GoogleRoutingProvider::idsrc/provider.rs:176 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| GoogleRoutingProvider::find_routesrc/provider.rs:180 | trait impl | 9 | 1 | 0 | 6 | 0.5 | |
| google_leg_stepssrc/provider.rs:280 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| google_overview_geometrysrc/provider.rs:296 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| BingRoutingProvider::idsrc/provider.rs:309 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| BingRoutingProvider::find_routesrc/provider.rs:313 | trait impl | 8 | 1 | 0 | 7 | 0.5 | |
| bing_geometrysrc/provider.rs:396 | fn | 6 | 1 | 0 | 0 | 0.5 | |
| bing_resource_legssrc/provider.rs:403 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| bing_leg_stepssrc/provider.rs:420 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| meters_from_kmsrc/provider.rs:468 | fn | 3 | 1 | 0 | 0 | 0.5 | |
| GeodesicRoutingProvider::idsrc/provider.rs:481 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| GeodesicRoutingProvider::find_routesrc/provider.rs:485 | trait impl | 51 | 4 | 0 | 2 | 0.5 | |
| ProviderOverrideGuard::dropsrc/provider.rs:603 | trait impl | 5 | 2 | 0 | 1 | 0.5 | |
| EnvGuard::dropsrc/provider.rs:658 | trait impl | 9 | 2 | 0 | 0 | 0.5 | |
| env_guard_restores_existing_valuesrc/provider.rs:675 | fn | 14 | 1 | 0 | 2 | 0.5 | |
| MockProvider::idsrc/provider.rs:692 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| MockProvider::find_routesrc/provider.rs:695 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| test_coordinate_parsingsrc/provider.rs:701 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| coordinate_parsing_covers_array_object_and_error_shapessrc/provider.rs:713 | fn | 23 | 1 | 0 | 2 | 0.5 | |
| test_override_resolutionsrc/provider.rs:738 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| provider_ids_and_osrm_noop_fetch_path_are_stablesrc/provider.rs:752 | fn | 12 | 1 | 0 | 1 | 0.5 | |
| providers_parse_mocked_success_responsessrc/provider.rs:766 | fn | 18 | 1 | 0 | 4 | 0.5 | |
| test_geodesic_routingsrc/provider.rs:786 | fn | 24 | 1 | 0 | 1 | 0.5 | |
| geodesic_routing_rejects_short_requests_and_interpolates_close_pointssrc/provider.rs:812 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| google_provider_covers_key_coordinate_and_fetch_error_pathssrc/provider.rs:832 | fn | 27 | 1 | 0 | 4 | 0.5 | |
| google_normalizer_covers_success_defaults_and_error_statussrc/provider.rs:861 | fn | 38 | 1 | 0 | 1 | 0.5 | |
| bing_provider_covers_key_coordinate_and_fetch_error_pathssrc/provider.rs:901 | fn | 21 | 1 | 0 | 4 | 0.5 | |
| bing_normalizer_covers_success_defaults_and_error_statussrc/provider.rs:924 | fn | 42 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.