Crates.io | dassign |
lib.rs | dassign |
version | 0.2.0 |
source | src |
created_at | 2020-12-14 10:55:36.021005 |
updated_at | 2020-12-14 11:40:55.822711 |
description | Simple destructuring assignments. |
homepage | |
repository | https://github.com/sandeep-datta/dassign |
max_upload_size | |
id | 322674 |
size | 2,602 |
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.