Skip to main content

TickHandlerRc

Type Alias TickHandlerRc 

Source
pub type TickHandlerRc = Rc<EngineCell<dyn TickHandler>>;
Expand description

A reference-counted shared-mutable container for a dyn TickHandler.

Holds a dyn TickHandler behind EngineCell (an UnsafeCell-backed Sync newtype), so the multi-owner shared-mut pattern that Rc<RefCell<T>> used to express is now expressed without RefCell - matching the rest of the engine’s static mut convention.

§Access

Use EngineCell::get_mut for unconditional mutable access.

Aliased Type§

pub struct TickHandlerRc { /* private fields */ }