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§
impl ReadOnlySystemParam for ()
impl<'a, D: ReadOnlyQueryData + 'static, F: QueryFilter + 'static> ReadOnlySystemParam for Option<Single<'a, D, F>>
impl<'a, T: Resource> ReadOnlySystemParam for Option<Res<'a, T>>
impl<P: ReadOnlySystemParam> ReadOnlySystemParam for (P₁, P₂, …, Pₙ)
This trait is implemented for tuples up to 17 items long.
impl<T: 'static> ReadOnlySystemParam for Option<NonSend<'_, T>>
impl<T: ?Sized> ReadOnlySystemParam for PhantomData<T>
Implementors§
impl ReadOnlySystemParam for FilteredResources<'_, '_>
impl ReadOnlySystemParam for WorldId
impl ReadOnlySystemParam for SystemChangeTick
impl<'a> ReadOnlySystemParam for &'a Archetypes
impl<'a> ReadOnlySystemParam for &'a Bundles
impl<'a> ReadOnlySystemParam for &'a Components
impl<'a> ReadOnlySystemParam for &'a Entities
impl<'a> ReadOnlySystemParam for &'a RemovedComponentEvents
impl<'a, D: ReadOnlyQueryData + 'static, F: QueryFilter + 'static> ReadOnlySystemParam for Single<'a, D, F>
impl<'a, T: Resource> ReadOnlySystemParam for Res<'a, T>
impl<'s> ReadOnlySystemParam for SystemName<'s>
impl<'s, T: FromWorld + Send + 'static> ReadOnlySystemParam for Local<'s, T>
impl<'w> ReadOnlySystemParam for &'w World
SAFETY: only reads world