pub fn get_actor_unchecked<T: Actor>(id: &Ustr) -> &mut T
Expand description
Returns a mutable reference to the registered actor of type T
for the id
.
§Safety
This function bypasses Rust’s borrow checker and type safety. Caller must ensure:
- Actor with
id
exists in registry. - No other mutable references to the same actor exist.
- Type
T
matches the actual actor type.
§Panics
Panics if no actor with the specified id
is found in the registry.