pub trait ToStringRadix { // Required method fn to_string_radix(&self, radix: i32) -> Result<String, String>; }
Convert i32 to a Hex string
i32
use bczhc_lib::i32::ToStringRadix; assert_eq!(51966.to_string_radix(16).unwrap(), "cafe")