Things you can’t do you in Rust: destructure vectors (medium.com) 2 points by andrew-lucker 8y ago ↗ HN
[–] dbrgn 8y ago ↗ This is actually not true. You can't do it in stable rust, but on nightly slice destructuring has been possible for a while now (just as the compile error indicates).See:- https://doc.rust-lang.org/unstable-book/language-features/sl...- https://doc.rust-lang.org/unstable-book/language-features/ad...
1 comment
[ 3.2 ms ] story [ 9.5 ms ] threadSee:
- https://doc.rust-lang.org/unstable-book/language-features/sl...
- https://doc.rust-lang.org/unstable-book/language-features/ad...