I'm trying to reflect a type:
#[derive(Component, Reflect, FromReflect)]
#[reflect(Component)]
struct Foo(HashMap<Id, X>);
where Id is:
#[derive(Clone, Copy, Hash, PartialEq, Eq, Reflect, FromReflect)]
#[reflect(Hash, PartialEq)]
pub struct Id(usize);
And yet this is panicking in bevy_reflect/src/map.rs:
thread 'main' panicked at 'the given key does not support hashing'
I've checked and my Id type is registered with App. Am I missing something else?