2 unstable releases
0.2.0 | Dec 14, 2020 |
---|---|
0.1.0 | Dec 14, 2020 |
#17 in #assignment
3KB
DASSIGN: Destructuring assignment
Use this crate for simple tuple destructuring assignments while the compiler implementation of this feature is being stabilized.
let mut x;
let mut y;
for _ in 1..100 {
dassign!((x, y) = func_returning_tuple());
}
Once this feature is stabilized simply remove the dassign!
macro from your code.
Reference
- RFC: https://github.com/rust-lang/rfcs/pull/2909.
- Tracking issue: https://github.com/rust-lang/rust/issues/71126
Dependencies
~4KB