Some IDEs can help with type visualization. Here is an example from VS Code (a slightly modified example from the The Rust Programming Language book):
But other viewers (for instance, used in PR reviews) don't.
Is it possible to setup Rustfmt in such a way that it would always make types explicit? If not - is there an alternative?
PS: I understand that refactoring will be more challenging. But I still prefer to optimize for readability in all code viewers.