pub fn u64_to_bool(a: u64) -> bool
Parse u64
to
bool
If a
is 0 then returns false
,
otherwise true
.
use rustils::parse::boolean::u64_to_bool;
let a = 42_u64;
let b = 1_u64;
let c = 0_u64;
assert!(u64_to_bool(a));
assert!(u64_to_bool(b));
assert!(!u64_to_bool(c));