Async Entity Component System based on the ideas of specs (https://github.com/amethyst/specs)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
573 B

  1. /// The reducer is the final step of a `Consumer` -- after a consumer
  2. /// has been split into two parts, and each of those parts has been
  3. /// fully processed, we are left with two results. The reducer is then
  4. /// used to combine those two results into one. See [the `plumbing`
  5. /// README][r] for further details.
  6. ///
  7. /// [r]: https://github.com/rayon-rs/rayon/blob/master/src/iter/plumbing/README.md
  8. pub trait Reducer<Result> {
  9. /// Reduce two final results into one; this is executed after a
  10. /// split.
  11. fn reduce(self, left: Result, right: Result) -> Result;
  12. }