itermacros

Crates.ioitermacros
lib.rsitermacros
version0.1.0
sourcesrc
created_at2024-01-12 21:20:20.112014
updated_at2024-01-12 21:20:20.112014
descriptionSome useful macros related to iterators.
homepagehttps://github.com/A4-Tacks/itermacros-rs
repositoryhttps://github.com/A4-Tacks/itermacros-rs
max_upload_size
id1098020
size12,774
A4-Tacks (A4-Tacks)

documentation

README

Some useful macros related to iterators.

Examples

# 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));
Commit count: 0

cargo fmt