Trait ReadOnlyQueryData

pub unsafe trait ReadOnlyQueryData: QueryData<ReadOnly = Self> { }
Expand description

A QueryData that is read only.

§Safety

This must only be implemented for read-only QueryData’s.

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 ReadOnlyQueryData for DebugName

SAFETY: we assert fields are readonly below

§

impl<F0> ReadOnlyQueryData for (F0,)

SAFETY: each item in the tuple is read only

§

impl<F0, F1> ReadOnlyQueryData for (F0, F1)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2> ReadOnlyQueryData for (F0, F1, F2)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3> ReadOnlyQueryData for (F0, F1, F2, F3)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4> ReadOnlyQueryData for (F0, F1, F2, F3, F4)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7, F8)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> ReadOnlyQueryData for (F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)

SAFETY: each item in the tuple is read only

§

impl<T> ReadOnlyQueryData for Option<T>

SAFETY: [OptionFetch] is read only because T is read only

§

impl<T> ReadOnlyQueryData for &T
where T: Component,

SAFETY: access is read only

§

impl<T> ReadOnlyQueryData for PhantomData<T>
where T: ?Sized,

SAFETY: PhantomData never accesses any world data.

Implementors§

§

impl ReadOnlyQueryData for &Archetype

SAFETY: access is read only

Source§

impl ReadOnlyQueryData for EntityInitQuery

SAFETY: we assert fields are readonly below

Source§

impl ReadOnlyQueryData for UpdateEntityQuery

SAFETY: we assert fields are readonly below

§

impl ReadOnlyQueryData for AnyOf<()>

SAFETY: each item in the tuple is read only

Source§

impl ReadOnlyQueryData for ClientSpawnQueryReadOnly

SAFETY: we assert fields are readonly below

§

impl ReadOnlyQueryData for Entity

SAFETY: access is read only

§

impl ReadOnlyQueryData for EntityRef<'_>

SAFETY: access is read only

Source§

impl ReadOnlyQueryData for OldView

SAFETY: we assert fields are readonly below

Source§

impl ReadOnlyQueryData for View

SAFETY: we assert fields are readonly below

§

impl ReadOnlyQueryData for EntityLocation

SAFETY: access is read only

§

impl ReadOnlyQueryData for FilteredEntityRef<'_>

SAFETY: Access is read-only.

§

impl<'__w, T> ReadOnlyQueryData for Ref<'__w, T>
where T: Component,

SAFETY: access is read only

§

impl<F0> ReadOnlyQueryData for AnyOf<(F0,)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1> ReadOnlyQueryData for AnyOf<(F0, F1)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2> ReadOnlyQueryData for AnyOf<(F0, F1, F2)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13)>

SAFETY: each item in the tuple is read only

§

impl<F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14> ReadOnlyQueryData for AnyOf<(F0, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14)>

SAFETY: each item in the tuple is read only

§

impl<T> ReadOnlyQueryData for Has<T>
where T: Component,

SAFETY: Has is read only