Skip to content
Discussion options

You must be logged in to vote

It's part of the more "advanced" public API, I think it's legitimate to use it. There is a helper type alias called QueryItem which you can take advantage of:

pub type QueryItem<'w, Q> = <<Q as WorldQueryGats<'w>>::Fetch as Fetch<'w>>::Item;

It is likely that bevy will take advantage of GATs as soon as they are stabilized, and change the API. Which is fine, bevy explicitly states that it will make major API breaking changes in the near future.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tim-blackbird
Comment options

@derivator
Comment options

@nicopap
Comment options

nicopap Aug 31, 2022
Collaborator

Answer selected by derivator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants