Crates.io | if_chain |
lib.rs | if_chain |
version | 1.0.2 |
source | src |
created_at | 2016-12-28 22:56:06.959949 |
updated_at | 2021-08-21 07:29:35.974595 |
description | Macro for writing nested `if let` expressions. |
homepage | |
repository | https://github.com/lambda-fairy/if_chain |
max_upload_size | |
id | 7826 |
size | 23,571 |
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.