Is there a way to print out a complete list of available members of a type or instance in Rust?
For example:
print(dir(objec
To expand on my comment, you can use rustdoc, the Rust documentation generator, to view almost everything you're asking for (at compile time). rustdoc will show:
/// or //!.rustdoc also automatically links to the source of each file in the [src] link.
Here is an example of the output of rustdoc.
The standard library API reference is available here and is available for anything in the std namespace.
You can get documentation for any crate available on crates.io on docs.rs. This automatically generates documentation for each crate every time it is released on crates.io.
You can generate documentation for your project with Cargo, like so:
cargo doc
This will also automatically generate documentation for your dependencies (but not the standard library).