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 280/week @ 2024-10-02 141/week @ 2024-10-09 193/week @ 2024-10-16 240/week @ 2024-10-23 164/week @ 2024-10-30 383/week @ 2024-11-06 348/week @ 2024-11-13 263/week @ 2024-11-20 184/week @ 2024-11-27 115/week @ 2024-12-04 115/week @ 2024-12-11 82/week @ 2024-12-18 43/week @ 2024-12-25 54/week @ 2025-01-01 83/week @ 2025-01-08 90/week @ 2025-01-15

278 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

~220–670KB
~16K SLoC