• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

src/H03-May-2022-315139

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D29-Sep-202074 65

.gitignoreH A D28-Dec-201618 32

.travis.ymlH A D22-May-201975 87

CHANGELOG.mdH A D29-Sep-20201.1 KiB3425

Cargo.tomlH A D29-Sep-2020928 2523

Cargo.toml.orig-cargoH A D29-Sep-2020412 1612

LICENSE-APACHEH A D20-Jul-201810.6 KiB202169

LICENSE-MITH A D20-Jul-20181 KiB2622

README.mdH A D29-Sep-2020677 105

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