sub_if

Crates.iosub_if
lib.rssub_if
version1.0.1
sourcesrc
created_at2023-04-16 11:06:20.530918
updated_at2023-04-16 11:08:42.977266
descriptionDifferent functions for conditional operations.
homepage
repositoryhttps://github.com/BlockOG/sub_if
max_upload_size
id840476
size9,145
(BlockOG)

documentation

README

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);
Commit count: 6

cargo fmt