Crates.io | boolean_checker |
lib.rs | boolean_checker |
version | 0.1.0 |
source | src |
created_at | 2023-04-20 00:21:48.353739 |
updated_at | 2023-04-20 00:21:48.353739 |
description | Checks boolean values for type safety. |
homepage | |
repository | |
max_upload_size | |
id | 844022 |
size | 2,374 |
Checks the value of a boolean. Essential for type safety.
is_true(true); // true
is_true(false); // false
is_true("false"); // invalid
is_false(false); // true
is_false(true); // false
is_false("true"); // invalid
Assure that you only pass in boolean values.