unwrap_return

Crates.iounwrap_return
lib.rsunwrap_return
version0.1.2
created_at2020-07-01 15:46:57.952913+00
updated_at2020-07-26 22:37:59.578329+00
descriptionA set of macros for returns and breaks in the None and Err cases.
homepagehttps://crates.io/crates/unwrap_return
repositoryhttps://github.com/AlexanderHarrison/unwrap_return
max_upload_size
id260298
size16,124
Aitch (AlexanderHarrison)

documentation

README

A set of macros for returns and breaks in the None and Err cases. Replaces repetitive code similar to

match expression {
    Some(ret) => ret,
    None => return
}

with simpler macros such as

unwrap_return!(expression)
Commit count: 0

cargo fmt