dassign

Crates.iodassign
lib.rsdassign
version0.2.0
sourcesrc
created_at2020-12-14 10:55:36.021005
updated_at2020-12-14 11:40:55.822711
descriptionSimple destructuring assignments.
homepage
repositoryhttps://github.com/sandeep-datta/dassign
max_upload_size
id322674
size2,602
Sandeep Datta (sandeep-datta)

documentation

README

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

Commit count: 6

cargo fmt