mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Update WorldQueryGats doc with type aliases (#5898)
Make API users aware that the type aliases `QueryItem` and `QueryFetch` can be used instead of the more bloated alternative with `WorldQueryGats`. Fixes #5842
This commit is contained in:
parent
bd68ba1c3c
commit
7a92555233
1 changed files with 3 additions and 1 deletions
|
@ -436,7 +436,9 @@ pub unsafe trait WorldQuery: for<'w> WorldQueryGats<'w> {
|
|||
) -> bool;
|
||||
}
|
||||
|
||||
/// A helper trait for [`WorldQuery`] that works around Rust's lack of Generic Associated Types
|
||||
/// A helper trait for [`WorldQuery`] that works around Rust's lack of Generic Associated Types.
|
||||
///
|
||||
/// **Note**: Consider using the type aliases [`QueryItem`] and [`QueryFetch`] when using `Item` or `Fetch`.
|
||||
pub trait WorldQueryGats<'world> {
|
||||
type Item;
|
||||
type Fetch;
|
||||
|
|
Loading…
Reference in a new issue