Crates.io | bail_macros |
lib.rs | bail_macros |
version | 0.1.0 |
source | src |
created_at | 2022-03-20 16:22:02.09478 |
updated_at | 2022-03-20 16:22:02.09478 |
description | Bail macros for Options, Results and more |
homepage | https://gitlab.com/LukasDoesDev/bail_macros |
repository | https://gitlab.com/LukasDoesDev/bail_macros |
max_upload_size | |
id | 553635 |
size | 23,318 |
Bail macros for Options, Results and more
use bail_macros::bob;
for i in 0..=20 {
println!("Index: {}", i);
bob!(None);
panic!("bob didn't break");
}
println!("cob broke out of the loop!");