pub struct ComponentRegistry { /* private fields */ }Expand description
A registry that maps component types to their semantic domains.
This is a critical internal part of the World. It provides a single source
of truth for determining which semantic group a component’s data belongs to,
enabling the World to correctly store and retrieve component data from pages.
Implementations§
Source§impl ComponentRegistry
impl ComponentRegistry
Sourcepub fn domain_of<T: Component>(&self) -> Option<SemanticDomain>
pub fn domain_of<T: Component>(&self) -> Option<SemanticDomain>
(Internal) Looks up the SemanticDomain for a given component type.
Trait Implementations§
Source§impl Debug for ComponentRegistry
impl Debug for ComponentRegistry
Source§impl Default for ComponentRegistry
impl Default for ComponentRegistry
Source§fn default() -> ComponentRegistry
fn default() -> ComponentRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentRegistry
impl RefUnwindSafe for ComponentRegistry
impl Send for ComponentRegistry
impl Sync for ComponentRegistry
impl Unpin for ComponentRegistry
impl UnwindSafe for ComponentRegistry
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