bevy_ecs::system

Trait ReadOnlySystemParam

Source
pub unsafe trait ReadOnlySystemParam: SystemParam { }
Expand description

A SystemParam that only reads a given World.

§Safety

This must only be implemented for SystemParam impls that exclusively read the World passed in to SystemParam::get_param

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ReadOnlySystemParam for ()

Source§

impl<'a, D: ReadOnlyQueryData + 'static, F: QueryFilter + 'static> ReadOnlySystemParam for Option<Single<'a, D, F>>

Source§

impl<'a, T: Resource> ReadOnlySystemParam for Option<Res<'a, T>>

Source§

impl<P: ReadOnlySystemParam> ReadOnlySystemParam for (P₁, P₂, …, Pₙ)

This trait is implemented for tuples up to 17 items long.

Source§

impl<T: 'static> ReadOnlySystemParam for Option<NonSend<'_, T>>

Source§

impl<T: ?Sized> ReadOnlySystemParam for PhantomData<T>

Implementors§

Source§

impl ReadOnlySystemParam for FilteredResources<'_, '_>

Source§

impl ReadOnlySystemParam for WorldId

Source§

impl ReadOnlySystemParam for SystemChangeTick

Source§

impl<'a> ReadOnlySystemParam for &'a Archetypes

Source§

impl<'a> ReadOnlySystemParam for &'a Bundles

Source§

impl<'a> ReadOnlySystemParam for &'a Components

Source§

impl<'a> ReadOnlySystemParam for &'a Entities

Source§

impl<'a> ReadOnlySystemParam for &'a RemovedComponentEvents

Source§

impl<'a, D: ReadOnlyQueryData + 'static, F: QueryFilter + 'static> ReadOnlySystemParam for Single<'a, D, F>

Source§

impl<'a, T: Resource> ReadOnlySystemParam for Res<'a, T>

Source§

impl<'s> ReadOnlySystemParam for SystemName<'s>

Source§

impl<'s, T: FromWorld + Send + 'static> ReadOnlySystemParam for Local<'s, T>

Source§

impl<'w> ReadOnlySystemParam for &'w World

SAFETY: only reads world

Source§

impl<'w, 's> ReadOnlySystemParam for Commands<'w, 's>

Source§

impl<'w, 's> ReadOnlySystemParam for ParallelCommands<'w, 's>
where Deferred<'s, ParallelCommandQueue>: ReadOnlySystemParam, &'w Entities: ReadOnlySystemParam,

Source§

impl<'w, 's, D: ReadOnlyQueryData + 'static, F: QueryFilter + 'static> ReadOnlySystemParam for Populated<'w, 's, D, F>

Source§

impl<'w, 's, D: ReadOnlyQueryData + 'static, F: QueryFilter + 'static> ReadOnlySystemParam for Query<'w, 's, D, F>

Source§

impl<'w, 's, E: Event> ReadOnlySystemParam for EventMutator<'w, 's, E>

Source§

impl<'w, 's, E: Event> ReadOnlySystemParam for EventReader<'w, 's, E>

Source§

impl<'w, 's, E: Event> ReadOnlySystemParam for EventWriter<'w, E>

Source§

impl<'w, 's, P0> ReadOnlySystemParam for ParamSet<'w, 's, (P0,)>

Source§

impl<'w, 's, P0, P1> ReadOnlySystemParam for ParamSet<'w, 's, (P0, P1)>

Source§

impl<'w, 's, P0, P1, P2> ReadOnlySystemParam for ParamSet<'w, 's, (P0, P1, P2)>

Source§

impl<'w, 's, P0, P1, P2, P3> ReadOnlySystemParam for ParamSet<'w, 's, (P0, P1, P2, P3)>

Source§

impl<'w, 's, P0, P1, P2, P3, P4> ReadOnlySystemParam for ParamSet<'w, 's, (P0, P1, P2, P3, P4)>

Source§

impl<'w, 's, P0, P1, P2, P3, P4, P5> ReadOnlySystemParam for ParamSet<'w, 's, (P0, P1, P2, P3, P4, P5)>

Source§

impl<'w, 's, P0, P1, P2, P3, P4, P5, P6> ReadOnlySystemParam for ParamSet<'w, 's, (P0, P1, P2, P3, P4, P5, P6)>

Source§

impl<'w, 's, P0, P1, P2, P3, P4, P5, P6, P7> ReadOnlySystemParam for ParamSet<'w, 's, (P0, P1, P2, P3, P4, P5, P6, P7)>

Source§

impl<'w, 's, P: ReadOnlySystemParam + 'static> ReadOnlySystemParam for StaticSystemParam<'w, 's, P>

Source§

impl<'w, 's, T: Component> ReadOnlySystemParam for ComponentIdFor<'s, T>
where Local<'s, InitComponentId<T>>: ReadOnlySystemParam,

Source§

impl<'w, 's, T: Component> ReadOnlySystemParam for RemovedComponents<'w, 's, T>

Source§

impl<'w, T> ReadOnlySystemParam for NonSend<'w, T>

Source§

impl<T: SystemBuffer> ReadOnlySystemParam for Deferred<'_, T>