gltf icon indicating copy to clipboard operation
gltf copied to clipboard

Improve `Debug` derives

Open Jasper-Bekkers opened this issue 5 years ago • 2 comments

Right now, a bunch of structs derive from Debug which is quite nice in general, however a lot of them have a reference to the parent document as one of their first elements causing a lot of commandline spew when I call dbg!() on them.

I'd love to see custom Debug implementations for all structs that start with a document: &'a Document. I've thought of suggesting simply moving the borrow to the last member of the struct, but that'll still end up in a lot of useless information outputted.

Jasper-Bekkers avatar Feb 12 '20 22:02 Jasper-Bekkers

I see your point and I agree, the debug output could be more conservative.

alteous avatar Feb 13 '20 18:02 alteous

Any progress on this? This would be a fantastic improvement

felipellrocha avatar Jan 16 '21 20:01 felipellrocha