A wrapper over std::result::Result that returns on Ok instead of Err when the ? operator is used.
The builtin Result's implementation of the ? operator mimics the short circuiting on a logical and: if one operation returns an error, immediately return from the function. If not, proceed to the next statements.
HatchResult's implementation of the ? operator mimics the short circuiting on a logical or: if one operation returns an Ok, immediately return from the function. If not, proceed to the next statements.
This crate also implements a hatch method on the builtin Result type that wraps the value in a HatchResult.
```rust
fn operation1() -> Result
}
fn operation2() -> Result
fn exitearlyifpossible() -> Result
fn handle_errors(err1: String, err2: String) -> Result
HatchResult is more concise (but equivalent) to the traditional approach:
```rust
fn exitearlyifpossible() -> Result
```
Result and HatchResult```rust
fn regular_result() -> Result
fn hatch_result() -> Result
ResultThe hatch method "converts" a result to a HatchResult.
This allows you to exit early on an Ok result or handle the error.
```rust
fn operationthatmight_fail() -> Result
fn hatchresult() -> Result