pub struct ComponentDomainRegistration {
pub register: fn(&mut World),
}Expand description
Inventory entry submitted by #[derive(Component)] when the type carries a
#[component(domain = ...)] attribute.
Each entry registers one concrete component type into a crate::ecs::World
with its declared SemanticDomain, so domain assignment is a property of
the type (single source of truth) instead of a hand-maintained list in
World::new. Collected via inventory and replayed by World::new.
Fields§
§register: fn(&mut World)Registers the component into world (calls World::register_component).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentDomainRegistration
impl RefUnwindSafe for ComponentDomainRegistration
impl Send for ComponentDomainRegistration
impl Sync for ComponentDomainRegistration
impl Unpin for ComponentDomainRegistration
impl UnsafeUnpin for ComponentDomainRegistration
impl UnwindSafe for ComponentDomainRegistration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more