#neg-if #mul-if #add-if #div-if

sub_if

Different functions for conditional operations

2 stable releases

1.0.1 Apr 16, 2023

Custom license

9KB
281 lines

sub_if

Doesn't only have sub_if!

A crate to make it so you don't have to do things like:

let x = if condition {
    a - b
} else {
    a
};

And can rather do:

let x = a.sub_if(condition, &b);

No runtime deps