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.