raise

Crates.ioraise
lib.rsraise
version2.0.0
sourcesrc
created_at2022-04-21 14:16:36.277671
updated_at2022-04-23 10:53:21.265738
description`yeet!` all the things
homepage
repositoryhttps://github.com/fee1-dead/raise
max_upload_size
id571624
size5,045
beef (fee1-dead)

documentation

README

yeet!

Replace return Err(x) and return None with:

fn foo() -> Option<u32> {
    yeet!();
}

fn bar() -> Result<u32, u32> {
    yeet!(42);
}

fn baz(x: u32) -> Result<u32, u32> {
    if x % 2 == 1 {
        yeet!(x);
    }
    Ok(x)
}

That's pretty much it.

Commit count: 2

cargo fmt