debug_stub_derive icon indicating copy to clipboard operation
debug_stub_derive copied to clipboard

Support default debug_stub implementation for members that don't implement Debug

Open jrmuizel opened this issue 8 years ago • 1 comments
trafficstars

It would be nice to be able to add DebugStub and have all the members that don't have a Debug implementation automatically have a debug_stub value of "...". It seems like this should be achievable on rust nightly using specialization like the debugit crate does.

jrmuizel avatar Aug 21 '17 19:08 jrmuizel

Auto-deref based specialization might work too for this case, and it works on stable

kangalio avatar Jan 05 '22 18:01 kangalio