rustc/vendor/if_chain
2020-12-02 10:43:25 +01:00
..
src New upstream version 1.48.0+dfsg2 2020-12-02 10:43:25 +01:00
.cargo-checksum.json New upstream version 1.48.0+dfsg2 2020-12-02 10:43:25 +01:00
Cargo.toml New upstream version 1.48.0+dfsg2 2020-12-02 10:43:25 +01:00
CHANGELOG.md New upstream version 1.48.0+dfsg2 2020-12-02 10:43:25 +01:00
LICENSE-APACHE New upstream version 1.48.0+dfsg2 2020-12-02 10:43:25 +01:00
LICENSE-MIT New upstream version 1.48.0+dfsg2 2020-12-02 10:43:25 +01:00
README.md New upstream version 1.48.0+dfsg2 2020-12-02 10:43:25 +01:00

if_chain

Build Status Cargo

This crate provides a single macro called if_chain!.

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.

For more information on this crate, see the documentation and associated blog post.