Crate kiam

Source
Expand description

(“kiam” is “when” in Esperanto)

This crate introduces when! macro which provides better syntax for if/else if/else chains. The syntax is similar to match.

(idea is borrowed from kotlin)

Macros§

when
Better syntax for if/else if/else similar to match syntax