The Rust Standard Library
The Rust Standard Library https://doc.rust-lang.org/std/index.html
本地项目API文档查看
# cargo doc --open Checking libc v0.2.47 Documenting libc v0.2.47 Checking rand v0.4.5 Documenting rand v0.4.5 Checking rand v0.3.22 Documenting rand v0.3.22 Documenting guessing_game v0.1.0 (/usr/local/automng/src/rust/test/guessing_game) Finished dev [unoptimized + debuginfo] target(s) in 12.30s Opening /usr/local/automng/src/rust/test/guessing_game/target/doc/guessing_game/index.html 该命令生成项目引用API文档, COPY /usr/local/automng/src/rust/test/guessing_game/target/doc 到windows电脑或其他位置 打开页面即可查看API
cd /ai/wks/rfil/rtp_test && cargo doc --no-deps --document-private-items 2>&1 | grep -A5 -B5 "rolling_sum" || echo "No doc found, checking imports..." cd /ai/wks/rfil/rtp_test && cargo doc --no-deps 2>&1 | grep -A10 -B5 "rolling" | head -30 || echo "Let me try a different approach"