Skip to main content

ComponentRc

Type Alias ComponentRc 

Source
pub type ComponentRc = Rc<EngineCell<dyn Component>>;
Expand description

A reference-counted, shared-mutable handle to a dyn Component trait object.

Held behind EngineCell (an UnsafeCell-backed Sync newtype) so the storage matches the rest of the engine’s static mut convention. Use EngineCell::get_mut for exclusive mutable access.

Aliased Type§

pub struct ComponentRc { /* private fields */ }