Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/workflows/ | H | 03-May-2022 | - | 51 | 42 | |
src/ | H | 03-May-2022 | - | 315 | 139 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 01-Jan-1970 | 74 | 6 | 5 | |
.gitignore | H A D | 29-Nov-1973 | 18 | 3 | 2 | |
CHANGELOG.md | H A D | 29-Nov-1973 | 1,019 | 28 | 20 | |
Cargo.toml | H A D | 01-Jan-1970 | 814 | 22 | 20 | |
Cargo.toml.orig-cargo | H A D | 29-Nov-1973 | 349 | 13 | 10 | |
LICENSE-APACHE | H A D | 29-Nov-1973 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | H A D | 29-Nov-1973 | 1 KiB | 26 | 22 | |
README.md | H A D | 29-Nov-1973 | 677 | 10 | 5 |
README.md
1# if_chain 2 3[![Build Status](https://travis-ci.com/lambda-fairy/if_chain.svg?branch=master)](https://travis-ci.com/lambda-fairy/if_chain) [![Cargo](https://img.shields.io/crates/v/if_chain.svg)](https://crates.io/crates/if_chain) 4 5This crate provides a single macro called `if_chain!`. 6 7`if_chain!` lets you write long chains of nested `if` and `if let` statements without the associated rightward drift. It also supports multiple patterns (e.g. `if let Foo(a) | Bar(a) = b`) in places where Rust would normally not allow them. 8 9For more information on this crate, see the [documentation](https://docs.rs/if_chain) and associated [blog post](https://lambda.xyz/blog/if-chain). 10