Crates.io | itermacros |
lib.rs | itermacros |
version | 0.1.0 |
source | src |
created_at | 2024-01-12 21:20:20.112014 |
updated_at | 2024-01-12 21:20:20.112014 |
description | Some useful macros related to iterators. |
homepage | https://github.com/A4-Tacks/itermacros-rs |
repository | https://github.com/A4-Tacks/itermacros-rs |
max_upload_size | |
id | 1098020 |
size | 12,774 |
Some useful macros related to iterators.
# use itermacros::iunpack;
let x = iunpack!(a, b, *c, d = 0..=5 => {
(a, b, c, d)
} else panic!());
assert_eq!(x, (0, 1, vec![2, 3, 4], 5));