Skip to main content

format_width

Function format_width 

Source
pub fn format_width(n: u64, width: usize) -> String
Expand description

n zero-padded to width digits (5.3.9.4.4 %0<width>d), the width clamped to 1..=MAX_FORMAT_WIDTH.