yeet!
macroyeet-ops
is a super small crate to compliment the do yeet
statement implemented in https://github.com/rust-lang/rust/pull/96376
This crate requires a nightly build of Rust.
Simply toss this in your Cargo.toml
dependencies:
toml
yeet-ops = "^1.0.0"
Then you are good to go!
```rust
use yeet_ops::yeet;
/// A function that yeets None
fn test() -> Option
/// A function that yeets Err(1)
fn test2() -> Result
fn main() { // Did it yeet? asserteq!(test(), None); asserteq!(test2(), Err(1)); } ```