bevy/crates/bevy_ecs/src/query
Vic b7d5254762
implement get_many_unique (#18315)
# Objective

Continuation to #16547 and #17954.

The `get_many` family are the last methods on `Query`/`QueryState` for
which we're still missing a `unique` version.

## Solution

Offer `get_many_unique`/`get_many_unique_mut` and
`get_many_unique_inner`!

Their implementation is the same as `get_many`, the difference lies in
their guaranteed-to-be unique inputs, meaning we never do any aliasing
checks.

To reduce confusion, we also rename `get_many_readonly` into
`get_many_inner` and the current `get_many_inner` into
`get_many_mut_inner` to clarify their purposes.

## Testing

Doc examples.

## Migration Guide

`get_many_inner` is now called `get_many_mut_inner`.
`get_many_readonly` is now called `get_many_inner`.
2025-03-16 21:12:26 +00:00
..
access.rs Remove deprecated component_reads_and_writes (#16348) 2025-03-04 08:22:29 +00:00
builder.rs Remove deprecated component_reads_and_writes (#16348) 2025-03-04 08:22:29 +00:00
error.rs Remove lifetime from QueryEntityError (#18157) 2025-03-09 20:05:22 +00:00
fetch.rs Fix unsound query transmutes on queries obtained from Query::as_readonly() (#17973) 2025-03-04 19:26:31 +00:00
filter.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter.rs Add print_stdout and print_stderr lints (#17446) (#18233) 2025-03-11 19:35:48 +00:00
mod.rs Generic system config (#17962) 2025-03-12 00:12:30 +00:00
par_iter.rs make various entity wrapper type modules public (#18248) 2025-03-11 05:48:31 +00:00
state.rs implement get_many_unique (#18315) 2025-03-16 21:12:26 +00:00
world_query.rs Move Item and fetch to QueryData from WorldQuery (#17679) 2025-02-05 18:46:18 +00:00