| Crates.io | sub_if |
| lib.rs | sub_if |
| version | 1.0.1 |
| created_at | 2023-04-16 11:06:20.530918+00 |
| updated_at | 2023-04-16 11:08:42.977266+00 |
| description | Different functions for conditional operations. |
| homepage | |
| repository | https://github.com/BlockOG/sub_if |
| max_upload_size | |
| id | 840476 |
| size | 9,145 |
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);