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, T: Resource> ReadOnlySystemParam for Option<Res<'a, T>>

Source§

impl<P0: ReadOnlySystemParam> ReadOnlySystemParam for (P0,)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam, P9: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam, P9: ReadOnlySystemParam, P10: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam, P9: ReadOnlySystemParam, P10: ReadOnlySystemParam, P11: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam, P9: ReadOnlySystemParam, P10: ReadOnlySystemParam, P11: ReadOnlySystemParam, P12: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam, P9: ReadOnlySystemParam, P10: ReadOnlySystemParam, P11: ReadOnlySystemParam, P12: ReadOnlySystemParam, P13: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam, P9: ReadOnlySystemParam, P10: ReadOnlySystemParam, P11: ReadOnlySystemParam, P12: ReadOnlySystemParam, P13: ReadOnlySystemParam, P14: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14)

Source§

impl<P0: ReadOnlySystemParam, P1: ReadOnlySystemParam, P2: ReadOnlySystemParam, P3: ReadOnlySystemParam, P4: ReadOnlySystemParam, P5: ReadOnlySystemParam, P6: ReadOnlySystemParam, P7: ReadOnlySystemParam, P8: ReadOnlySystemParam, P9: ReadOnlySystemParam, P10: ReadOnlySystemParam, P11: ReadOnlySystemParam, P12: ReadOnlySystemParam, P13: ReadOnlySystemParam, P14: ReadOnlySystemParam, P15: ReadOnlySystemParam> ReadOnlySystemParam for (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15)

Source§

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

Source§

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

Implementors§

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, 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 Query<'w, 's, D, F>

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>