miniblog.
← Back to all posts
Aug 7, 2014 at 17:45
Rust docs have links to the source (click [src]):
https://doc.rust-lang.org/arena/struct.Arena.html
I wish more languages did this.
Wilfred Hughes
Related Posts
Sep 2, 2021 at 04:59
rust-analyzer is experimenting with a really clever feature: allow types to open a link to their external docs!
https://github.com/rust-analyzer/rust-analyzer/blob/master/docs/dev/lsp-extensions.md#open-external-documentation
I've definitely thought about referencing external resources from an editor: in principle you could even fetch the first paragraph inline too!
File not found · rust-lang/rust-analyzer
A Rust compiler front-end for IDEs. Contribute to rust-lang/rust-analyzer development by creating an account on GitHub.
Wilfred Hughes
Shared words: Rust, docs, links Score: 69.9
Apr 28, 2022 at 02:50
The examples coverage in Rust is exceptionally good. It's weird how few languages include an example in their stdlib docs for sorting.
https://doc.rust-lang.org/std/vec/struct.Vec.html#method.sort
Vec in std::vec - Rust
A contiguous growable array type, written as `Vec<T>`, short for ‘vector’.
Wilfred Hughes
Shared words: Rust, docs, languages Score: 63.5
May 30, 2017 at 17:45
The Rust docs contain an index where you can find syntax, even if it's ungooglable!
https://doc.rust-lang.org/book/syntax-index.html
Every language should have this.
Syntax Index
doc.rust-lang.org/book/syntax-index.html
Wilfred Hughes
Shared words: Rust, docs, languages Score: 63.5