bevy
bevy copied to clipboard
Implement `Debug` for dynamic types
Objective
When trying derive Debug
for type that has DynamicEnum
it wasn't possible, since neither of DynamicEnum
, DynamicTuple
, DynamicVariant
or DynamicArray
implements Debug
.
Solution
Implement Debug for those types, using derive
macro
Changelog
-
DynamicEnum
,DynamicTuple
,DynamicVariant
andDynamicArray
now implementsDebug
Should we not implement
Debug
for all theDynamic*
structs? I did not look through all the types, but for exampleDynamicArray
also doesn't implement it.
I didn't take a look in all Dynamic*
also, I just needed Debug
on DynamicEnum
and added. I'll update this PR and add for all those Dynamic*
s
bors r+
Pull request successfully merged into main.
Build succeeded: