#control-flow #conditional #macro #utilities #branch

flowcontrol

Utilities for clarifying and simplifying control flow

5 releases

0.2.3 Dec 16, 2024
0.2.2 Jul 30, 2024
0.2.1 Jul 23, 2024
0.2.0 Jul 22, 2024
0.1.0 Jul 22, 2024

#1312 in Rust patterns

Download history 10/week @ 2024-11-20 13/week @ 2024-11-27 17/week @ 2024-12-04 133/week @ 2024-12-11 41/week @ 2024-12-18 23/week @ 2025-01-01 10/week @ 2025-01-08 3/week @ 2025-02-05 4/week @ 2025-02-12 18/week @ 2025-02-19 20/week @ 2025-02-26 16/week @ 2025-03-05

58 downloads per month
Used in 8 crates (4 directly)

ISC license

5KB
77 lines

Flowcontrol

General purpose macros and utilities for expediting and clarifying control flow in rust.

  • shed! - stop breaks

  • superif! - like if with multi-statement, branching conditionals

  • ta_return! - type assert a block's return value (ex: in async blocks, closures)

No runtime deps