rtic/book/en/src/by-example/tips_destructureing.md
2021-12-19 01:33:16 +01:00

374 B

Resource de-structure-ing

Destructuring task resources might help readability if a task takes multiple resources. Here are two examples on how to split up the resource struct:

{{#include ../../../../examples/destructure.rs}}
$ cargo run --target thumbv7m-none-eabi --example destructure
{{#include ../../../../ci/expected/destructure.run}}