Do you think it's reasonable to make a Rust library that allows you to do Erlang style binary matching?
That's what I was originally looking for when I found this.
That's what I was originally looking for when I found this.
There is also slice matching on stable, which let's you match on parts of slices: https://github.com/rust-lang/rust/pull/67712/ . It went out in 1.42. It has some stuff which makes binary stuff easier, but not by much. But perhaps someday you'll get native binary matching in the language that's closer to what Erlang offers.
It made it in the 1.42 release.