bevy/crates/bevy_ecs/src
JoJoJet b03b7b557e
Simplify system piping and make it more flexible (#8377)
# Objective

- Currently, it is not possible to call `.pipe` on a system that takes
any input other than `()`.
- The `IntoPipeSystem` trait is currently very difficult to parse due to
its use of generics.

## Solution

Remove the `IntoPipeSystem` trait, and move the `pipe` method to
`IntoSystem`.

---

## Changelog

- System piping has been made more flexible: it is now possible to call
`.pipe` on a system that takes an input.

## Migration Guide

The `IntoPipeSystem` trait has been removed, and the `pipe` method has
been moved to the `IntoSystem` trait.

```rust

// Before:
use bevy_ecs::system::IntoPipeSystem;
schedule.add_systems(first.pipe(second));

// After:
use bevy_ecs::system::IntoSystem;
schedule.add_systems(first.pipe(second));
```
2023-04-17 16:08:32 +00:00
..
entity Inline more ECS functions (#8083) 2023-04-12 19:52:06 +00:00
query Improve or-with disjoint checks (#7085) 2023-04-17 15:16:58 +00:00
schedule Add a missing safety invariant to System::run_unsafe (#7778) 2023-04-17 15:20:42 +00:00
storage Improve warning for Send resources marked as non_send (#8000) 2023-04-17 16:06:00 +00:00
system Simplify system piping and make it more flexible (#8377) 2023-04-17 16:08:32 +00:00
world Add a scope API for world schedules (#8387) 2023-04-16 05:09:33 +00:00
archetype.rs Inline more ECS functions (#8083) 2023-04-12 19:52:06 +00:00
bundle.rs Inline more ECS functions (#8083) 2023-04-12 19:52:06 +00:00
change_detection.rs Improve documentation for set_if_neq (#8254) 2023-03-30 15:43:13 +00:00
component.rs Inline more ECS functions (#8083) 2023-04-12 19:52:06 +00:00
event.rs Move event traces to detailed_trace! (#7732) 2023-04-11 03:37:58 +00:00
lib.rs Simplify system piping and make it more flexible (#8377) 2023-04-17 16:08:32 +00:00
reflect.rs Bugfix: Scene reload fix (nonbreaking) (#7951) 2023-03-27 22:18:45 +00:00
removal_detection.rs Use UnsafeWorldCell to increase code quality for SystemParam (#8174) 2023-04-01 15:45:07 +00:00