Settings

Theme

Things you can’t do you in Rust: destructure vectors

medium.com

2 points by andrew-lucker 8 years ago · 1 comment

Reader

dbrgn 8 years 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...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection