pub unsafe trait ReadOnlyQueryData: QueryData<ReadOnly = Self> { }
Expand description
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 ReadOnlyQueryData for ()
SAFETY: each item in the tuple is read only
impl<F: ReadOnlyQueryData> ReadOnlyQueryData for (F₁, F₂, …, Fₙ)
This trait is implemented for tuples up to 16 items long. SAFETY: each item in the tuple is read only
impl<T: Component> ReadOnlyQueryData for &T
SAFETY: access is read only
impl<T: ReadOnlyQueryData> ReadOnlyQueryData for Option<T>
SAFETY: [OptionFetch
] is read only because T
is read only
impl<T: ?Sized> ReadOnlyQueryData for PhantomData<T>
SAFETY: PhantomData
never accesses any world data.
Implementors§
impl ReadOnlyQueryData for &Archetype
SAFETY: access is read only
impl ReadOnlyQueryData for Entity
SAFETY: access is read only
impl ReadOnlyQueryData for EntityLocation
SAFETY: access is read only
impl ReadOnlyQueryData for EntityRef<'_>
SAFETY: access is read only
impl ReadOnlyQueryData for FilteredEntityRef<'_>
SAFETY: Access is read-only.
impl ReadOnlyQueryData for AnyOf<()>
SAFETY: each item in the tuple is read only
impl<'__w, T: Component> ReadOnlyQueryData for Ref<'__w, T>
SAFETY: access is read only
impl<'a, B> ReadOnlyQueryData for EntityRefExcept<'a, B>where
B: Bundle,
SAFETY: EntityRefExcept
enforces read-only access to its contained
components.
impl<F: ReadOnlyQueryData> ReadOnlyQueryData for AnyOf<(F₁, F₂, …, Fₙ)>
This trait is implemented for tuples up to 16 items long. SAFETY: each item in the tuple is read only
impl<T: Component> ReadOnlyQueryData for Has<T>
SAFETY: Has
is read only