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
I use something like this:
println!("{:?}", variable); // struct, enum whatever
If it's a large type, use the # version:
#
println!("{:#?}", variable); // struct, enum whatever