3 releases

0.1.2 Dec 30, 2023
0.1.1 Dec 29, 2023
0.1.0 Dec 29, 2023

#10 in #lending-iterator

Download history 117/week @ 2024-07-29 108/week @ 2024-08-05 95/week @ 2024-08-12 97/week @ 2024-08-19 128/week @ 2024-08-26 119/week @ 2024-09-02 122/week @ 2024-09-09 182/week @ 2024-09-16 201/week @ 2024-09-23 320/week @ 2024-09-30 191/week @ 2024-10-07 162/week @ 2024-10-14 215/week @ 2024-10-21 225/week @ 2024-10-28 352/week @ 2024-11-04 391/week @ 2024-11-11

1,192 downloads per month
Used in lender

Apache-2.0 OR LGPL-2.1-or-later OR MIT

16KB

Derive procedural macros for the lender crate.

This crate provides a for_! function-like macro that can be used to iterate over an IntoLender with a syntax similar to a for loop:

for_!(x in into_lender {
    ...
});

The macro expands to a while let loop that iterates over a Lender obtained from the IntoLender. The full for syntax is supported (patterns, etc.).

Dependencies

~205–630KB
~15K SLoC