gltf-rs / gltf

A crate for loading glTF 2.0
Apache License 2.0
535 stars 124 forks source link

Improve `Debug` derives #276

Open Jasper-Bekkers opened 4 years ago

Jasper-Bekkers commented 4 years ago

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.

alteous commented 4 years ago

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

felipellrocha commented 3 years ago

Any progress on this? This would be a fantastic improvement