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> ReadOnlyQueryData for (F0,)

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData, F12: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData, F12: ReadOnlyQueryData, F13: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData, F12: ReadOnlyQueryData, F13: ReadOnlyQueryData, F14: ReadOnlyQueryData> 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: Component> ReadOnlyQueryData for &T

SAFETY: access is read only

source§

impl<T: ReadOnlyQueryData> ReadOnlyQueryData for Option<T>

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

source§

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

SAFETY: PhantomData never accesses any world data.

Implementors§

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: Component> ReadOnlyQueryData for Ref<'__w, T>

SAFETY: access is read only

source§

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

SAFETY: NopFetch never accesses any data

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

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

SAFETY: each item in the tuple is read only

source§

impl<F0: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData, F12: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData, F12: ReadOnlyQueryData, F13: ReadOnlyQueryData> 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: ReadOnlyQueryData, F1: ReadOnlyQueryData, F2: ReadOnlyQueryData, F3: ReadOnlyQueryData, F4: ReadOnlyQueryData, F5: ReadOnlyQueryData, F6: ReadOnlyQueryData, F7: ReadOnlyQueryData, F8: ReadOnlyQueryData, F9: ReadOnlyQueryData, F10: ReadOnlyQueryData, F11: ReadOnlyQueryData, F12: ReadOnlyQueryData, F13: ReadOnlyQueryData, F14: ReadOnlyQueryData> 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: Component> ReadOnlyQueryData for Has<T>

SAFETY: Has is read only