bevy/crates/bevy_ecs/src/system
tomaspecl 2bcd85421e
Documentation improvement system_param.rs (#20157)
# Objective
Improvement of the documentation for SystemParam derive section so that
it mentions how to use a Query<&SomeComponent> as a SystemParam for a
struct that should have #[derive(SystemParam)].

## Solution
Added the documentation

---

## Showcase
the previous documentation
```rust
Query<'w, 's, Entity>,
Res<'w, SomeResource>,
ResMut<'w, SomeOtherResource>,
Local<'s, u8>,
Commands<'w, 's>,
EventReader<'w, 's, SomeEvent>,
EventWriter<'w, SomeEvent>
```
the new documentation
```rust
Query<'w, 's, Entity>,
Query<'w, 's, &'static SomeComponent>,  <================== the new thing
Res<'w, SomeResource>,
ResMut<'w, SomeOtherResource>,
Local<'s, u8>,
Commands<'w, 's>,
EventReader<'w, 's, SomeEvent>,
EventWriter<'w, SomeEvent>
```
2025-07-16 17:58:18 +00:00
..
commands allow EntityCloner to move components without Clone or Reflect (#20065) 2025-07-14 22:33:01 +00:00
adapter_system.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
builder.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
combinator.rs feat: implement clone for IntoPipeSystem (#20108) 2025-07-14 21:38:51 +00:00
exclusive_function_system.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
exclusive_system_param.rs refactor(utils): move SyncCell and SyncUnsafeCell to bevy_platform (#19305) 2025-05-27 04:57:26 +00:00
function_system.rs Split BufferedEvent from Event (#20101) 2025-07-14 21:31:48 +00:00
input.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
mod.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
observer_system.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
query.rs Remove 's lifetime from WorldQuery::Fetch (#19720) 2025-06-19 00:58:21 +00:00
schedule_system.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
system_name.rs Fix issue 19734: add dependency on bevy_utils for the bevy_ecs test. (#19738) 2025-06-21 15:05:04 +00:00
system_param.rs Documentation improvement system_param.rs (#20157) 2025-07-16 17:58:18 +00:00
system_registry.rs Have System::run_unsafe return Result. (#19145) 2025-07-03 21:48:09 +00:00
system.rs ReadOnlySystem diagnostics and type alias (#19138) 2025-07-15 00:14:06 +00:00