Trait ReadOnlyQuery

Source
pub unsafe trait ReadOnlyQuery: Query { }
Expand description

Marker trait for queries which do not access data mutably.

For instance, the query (&A, &B) is read-only, but (&A, &mut B) is not.

§Safety

The query must not access data mutably, as methods like Fetcher::get rely on this property to avoid mutable aliasing.

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§

Source§

impl ReadOnlyQuery for ()

Source§

impl<C> ReadOnlyQuery for &C
where C: Component,

Source§

impl<Q0> ReadOnlyQuery for (Q0,)
where Q0: ReadOnlyQuery,

Source§

impl<Q0, Q1> ReadOnlyQuery for (Q0, Q1)

Source§

impl<Q0, Q1, Q2> ReadOnlyQuery for (Q0, Q1, Q2)

Source§

impl<Q0, Q1, Q2, Q3> ReadOnlyQuery for (Q0, Q1, Q2, Q3)

Source§

impl<Q0, Q1, Q2, Q3, Q4> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4)

Source§

impl<Q0, Q1, Q2, Q3, Q4, Q5> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4, Q5)

Source§

impl<Q0, Q1, Q2, Q3, Q4, Q5, Q6> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4, Q5, Q6)

Source§

impl<Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7)

Source§

impl<Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8)

Source§

impl<Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9)

Source§

impl<Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10)

Source§

impl<Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11> ReadOnlyQuery for (Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11)

Source§

impl<Q> ReadOnlyQuery for Option<Q>
where Q: ReadOnlyQuery,

Source§

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

Implementors§

Source§

impl ReadOnlyQuery for EntityId

Source§

impl<L, R> ReadOnlyQuery for Or<L, R>

Source§

impl<L, R> ReadOnlyQuery for Xor<L, R>

Source§

impl<Q> ReadOnlyQuery for Not<Q>
where Q: Query,

Source§

impl<Q> ReadOnlyQuery for Has<Q>
where Q: Query,

Source§

impl<Q> ReadOnlyQuery for With<Q>
where Q: Query,