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