Skip to main content

EntityRc

Type Alias EntityRc 

Source
pub type EntityRc = Rc<EngineCell<Entity>>;
Expand description

A reference-counted, shared-mutable handle to an Entity.

Mirrors ComponentRc - the underlying storage is EngineCell<Entity> rather than Rc<RefCell<Entity>>. The naming and ownership semantics stay the same; only the interior mutability mechanism changes.

Aliased Typeยง

pub struct EntityRc { /* private fields */ }