- Rust Standard Library Cookbook
- Jan Nils Ferner Daniel Durante
- 84字
- 2021-08-27 19:45:09
There's more...
Keep in mind that you should use this technique sparingly. Most of the time, it is clearer to just accept and operate on a slice instead. However, it makes sense to use this in combination with other macros and higher kinds of concepts where the analogy of a graspable list of things breaks down. Finding a good example for this is difficult since they tend to be extremely specific. You can find one of them at the end of the book though.