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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ReadOnlyQueryData for ()

SAFETY: each item in the tuple is read only

source§

impl<F0> ReadOnlyQueryData for (F0,)

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl<T> ReadOnlyQueryData for Option<T>

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

source§

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

SAFETY: access is read only

source§

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

SAFETY: PhantomData never accesses any world data.

Implementors§

source§

impl ReadOnlyQueryData for DebugName

SAFETY: we assert fields are readonly below

source§

impl ReadOnlyQueryData for NodeQueryReadOnly

SAFETY: we assert fields are readonly below

source§

impl ReadOnlyQueryData for Entity

SAFETY: access is read only

source§

impl ReadOnlyQueryData for EntityRef<'_>

SAFETY: access is read only

source§

impl ReadOnlyQueryData for FilteredEntityRef<'_>

SAFETY: Access is read-only.

source§

impl ReadOnlyQueryData for AnyOf<()>

SAFETY: each item in the tuple is read only

source§

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

SAFETY: access is read only

source§

impl<D> ReadOnlyQueryData for NopWorldQuery<D>
where D: QueryData,

SAFETY: NopFetch never accesses any data

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

SAFETY: Has is read only