Function bevy_reflect::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",
// }