MCPcopy Create free account
hub / github.com/PerroEngine/Perro / book_rank

Function book_rank

perro_website/src/docs.rs:52–71  ·  view source on GitHub ↗
(slug: &str)

Source from the content-addressed store, hash-verified

50 .collect::<Vec<_>>();
51 pages.sort_by_key(|doc| book_rank(&doc.slug));
52 pages
53}
54
55fn book_rank(slug: &str) -> usize {
56 match slug {
57 "index" => 0,
58 "install" => 1,
59 "first_project" => 2,
60 "scenes_nodes" => 3,
61 "scripting_model" => 4,
62 "rust_scripting" => 5,
63 "runtime_nodes" => 6,
64 "generated_script_glue" => 7,
65 "input" => 8,
66 "assets_resources" => 9,
67 "ui_animation_audio" => 10,
68 "physics_queries" => 11,
69 "demos_web" => 12,
70 "performance_release" => 13,
71 "api_map" => 14,
72 _ => usize::MAX,
73 }
74}

Callers 1

book_pagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected