pub fn struct_debug(dyn_struct: &dyn Struct, f: &mut Formatter<'_>) -> Result
The default debug formatter for Struct types.
Struct
use bevy_reflect::Reflect; #[derive(Reflect)] struct MyStruct { foo: usize } let my_struct: &dyn Reflect = &MyStruct { foo: 123 }; println!("{:#?}", my_struct); // Output: // MyStruct { // foo: 123, // }