如何获得在 Rust 中实现特定特征的类型列表?

How can I get a list of types that implement a particular trait in Rust?

我想知道实现 std::io::Write 的结构;它在某些文件中有描述吗?

当您查找 API for std you can search for your trait there (e.g. std::io::Write).

当您向下滚动到“Implementors”部分时,您将看到在 std.

中实现该特征的所有 structs/enums

为了获得更好的概览,您可以使用 +- 键折叠所有部分并获得一个很好的概览,例如