Async Entity Component System based on the ideas of specs (https://github.com/amethyst/specs)
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

13 linhas
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. }