Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 703 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 703 Bytes

if_chain

CI 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.