bail-out

Crates.iobail-out
lib.rsbail-out
version0.2.0
sourcesrc
created_at2021-01-13 14:30:30.744578
updated_at2021-01-14 08:28:24.76504
descriptionMacros to help keep code clean for validations and error handling
homepage
repositoryhttps://github.com/augustocdias/bail-out
max_upload_size
id341395
size8,553
Augusto César Dias (augustocdias)

documentation

https://docs.rs/bail-out

README

Bail Out

This library is inspired in the ensure and bail macros from anyhow. The difference is that it is not tied to anyhow's types.

Many libraries have their own error types and using the anyhow's ensure macro doesn't work because it returns an anyhow error. This library intends to work with any type.

This library also provides the assure macro, that does the same but evaluates to a Result instead of returning. This is useful for using inside try blocks.

Please check the docs for usage.

Commit count: 7

cargo fmt