Rust: parse bytes like the C++ version and use `impl Trait` syntax (#363)
Rust: parse bytes like the C++ version and use `impl Trait` syntax (#363)

* Rust: parse bytes like the C++ version and use `impl Trait` syntax

* Replace `.into_iter().copied()` by `.iter().copied()`

* Use `const` where possible
kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks,kostya/benchmarks