Trait bevy_ecs::system::ReadOnlySystem
source · pub unsafe trait ReadOnlySystem: System { }
Expand description
System
types that do not modify the World
when run.
This is implemented for any systems whose parameters all implement ReadOnlySystemParam
.
Safety
This must only be implemented for system types which do not mutate the World
.
Implementors§
impl<A, B, Func> ReadOnlySystem for CombinatorSystem<Func, A, B>where Func: Combine<A, B> + 'static, A: ReadOnlySystem, B: ReadOnlySystem,
SAFETY: Both systems are read-only, so any system created by combining them will only read from the world.
impl<Marker, F> ReadOnlySystem for FunctionSystem<Marker, F>where Marker: 'static, F: SystemParamFunction<Marker>, F::Param: ReadOnlySystemParam,
SAFETY: F
’s param is ReadOnlySystemParam
, so this system will only read from the world.