bevy_reflect

Function map_debug

Source
pub fn map_debug(dyn_map: &dyn Map, f: &mut Formatter<'_>) -> Result
Expand description

The default debug formatter for Map types.

ยงExample

use bevy_reflect::Reflect;

let mut my_map = HashMap::new();
my_map.insert(123, String::from("Hello"));
println!("{:#?}", &my_map as &dyn Reflect);

// Output:

// {
//   123: "Hello",
// }