#flow-control #conditional #flow

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

#3 in #flow-control

41 downloads per month
Used in 8 crates (5 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