All Projects → lambda-fairy → If_chain

lambda-fairy / If_chain

Licence: other
Macro for writing nested `if let` expressions

Programming Languages

rust
11053 projects
macro
33 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].