Function jay_lib::fns::fn_str::u_str

source ·
pub fn u_str<U: Binary>(u: U) -> String
Expand description

convert a number into a binary number string like “0010000001011001..” Example:

use jay_lib::fns::fn_str;
assert_eq!("100",fn_str::u_str(4));
assert_eq!("11",fn_str::u_str(3));
assert_eq!("111",fn_str::u_str(7));