Derive Macro ComponentStorage
Source #[derive(ComponentStorage)]
{
#[component]
}
Expand description
Derive macro for ComponentStorage that generates standard HashMap-based implementations.
Requires a #[component(field = "field_name")] attribute specifying the HashMap field
in EntityRegistryInternal.
§Example
ⓘ#[derive(ComponentStorage)]
#[component(field = "names")]
pub struct Name(String);