rustup
rustup doc
Open locally installed documentation for the active toolchain. It is useful for offline study if the documentation component is present and a browser can open local files. Example format: shell. Manual illustration; review prerequisites and side effects before execution. No automatic installation, updates, network calls or configuration changes. Expected result (not executed): The local Rust Book opens if installed; otherwise consult the diagnostic. Common mistake: Assuming documentation is available with every installation profile.
Formal Syntax & Structure
rust syntaxrust
rustup doc [OPTIONS]Working Example
Example Snippetrust
rustup doc --book