Skip to main content

take_columns

Function take_columns 

Source
pub fn take_columns(text: &str, width: usize) -> &str
Expand description

The longest prefix of text that fits width display columns, never splitting a wide character.