Skip to main content

format_int

Function format_int 

Source
pub fn format_int<I: Integer>(n: I) -> Buffer
Expand description

One-shot convenience: formats an integer into a new Buffer and returns it.

let buf = format_number::format_int(42);
assert!(buf == "42");
let s: &str = &buf;