algorithm_rust 0.4.0

some common rust_algorithms, Everyone can participate, and the project will continue to be updated, all the algorithms comes from <Introduction to Algorithms III>
Documentation
Build #1108990 2024-01-30T14:44:44.859359+00:00
# rustc version
rustc 1.77.0-nightly (5518eaa94 2024-01-29)# docs.rs version
docsrs 0.6.0 (7667f348 2024-01-17)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/algorithm_rust-0.4.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/algorithm_rust-0.4.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240129-1.77.0-nightly-5518eaa94\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stdout] f5f893ffcb8a8d4184f35e109d9f49f0dd6b595658789b570005fc735aca2b2a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "f5f893ffcb8a8d4184f35e109d9f49f0dd6b595658789b570005fc735aca2b2a", kill_on_drop: false }`
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting algorithm_rust v0.4.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unnecessary parentheses around block return value
[INFO] [stderr]   --> src/search/max.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr] 11 |     (max_index)
[INFO] [stderr]    |     ^         ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 11 -     (max_index)
[INFO] [stderr] 11 +     max_index
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: type `Max_Priority_Queue` should have an upper camel case name
[INFO] [stderr]  --> src/structure/priority_queue.rs:2:12
[INFO] [stderr]   |
[INFO] [stderr] 2 | pub struct Max_Priority_Queue<T> {
[INFO] [stderr]   |            ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `MaxPriorityQueue`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `algorithm_rust` (lib doc) generated 2 warnings (run `cargo fix --lib -p algorithm_rust` to apply 1 suggestion)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.28s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/algorithm_rust/index.html
[INFO] running `Command { std: "docker" "inspect" "f5f893ffcb8a8d4184f35e109d9f49f0dd6b595658789b570005fc735aca2b2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f5f893ffcb8a8d4184f35e109d9f49f0dd6b595658789b570005fc735aca2b2a", kill_on_drop: false }`
[INFO] [stdout] f5f893ffcb8a8d4184f35e109d9f49f0dd6b595658789b570005fc735aca2b2a