pub fn with_stepped_world<R>(
host: &World,
entity: Entity,
f: impl FnOnce(&World) -> R,
) -> Result<R, StepError>Expand description
Run f against a stepped world’s world.
A host that supplies its own buffers - an offline run filling an audio buffer frame by frame, say - reads the world through this instead of through the world’s jobs.
§Errors
Returns StepError::NoWorld when entity names no reachable world proxy,
and StepError::NotStepped when it names a threaded world.