Skip to main content

tab_width

Function tab_width 

Source
pub fn tab_width(c: u32, tab_size: u32) -> u32
Expand description

Expansion width of a tab beginning at 0-based cell column c: advances to the next multiple of tab_size, always 1..=tab_size, never zero.