Function bevy_reflect::tuple_struct_debug

source ·
pub fn tuple_struct_debug(
    dyn_tuple_struct: &dyn TupleStruct,
    f: &mut Formatter<'_>
) -> Result
Expand description

The default debug formatter for TupleStruct types.

§Example

use bevy_reflect::Reflect;
#[derive(Reflect)]
struct MyTupleStruct(usize);

let my_tuple_struct: &dyn Reflect = &MyTupleStruct(123);
println!("{:#?}", my_tuple_struct);

// Output:

// MyTupleStruct (
//   123,
// )