Open
Description
Problem
I am writing a program and would like a way to see every struct that implements a trait (eg: serde::Serialize
)
I know that at somepoint during compilation the full type information is avaliable because rust is able to give output like
= help: the following other types implement trait `_::_serde::Serialize`:
&'a T
&'a mut T
()
(T,)
(T0, T1)
(T0, T1, T2)
(T0, T1, T2, T3)
(T0, T1, T2, T3, T4)
and 150 others
when using types that dont implement a trait.
Proposed Solution
if I had to guess this would probally be best relegated to some kind of nightly -Z flag probally smth like -Z dump-impls
probally producing either a debug output dump of the crates. or just a simple tabulated tree of crates and traits and impls
Notes
No response