Closed tgross35 closed 2 years ago
I don't find this kind of API to be typical Rust design: if it can be done with combinators it probably will be.
Furthermore I don't actually think this particular usage is that common, it really depends on what you're trying to do.
It's a fairly common task (in my use at least) that's kind of clunky to do. The macro is small and could either be in the crates or the docs, or even just here!
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=0715ba0dd9359305756bc265b092dc1a