For my (a bit hacky) use-case of bevy-trait-query, I need to register a generic struct as a trait, for different generic variants that I can't know in advance.
Hence, I need to call register_component_as for certain user actions and cannot guarantee that the combination of generics is different every time.
Is register_component_as idempotent, i.e., is it fine to call it multiple times for the same combination of trait-component combinations?
For my (a bit hacky) use-case of
bevy-trait-query
, I need to register a generic struct as a trait, for different generic variants that I can't know in advance.Hence, I need to call
register_component_as
for certain user actions and cannot guarantee that the combination of generics is different every time.Is
register_component_as
idempotent, i.e., is it fine to call it multiple times for the same combination of trait-component combinations?