Skip to main content

clamp

Function clamp 

Source
pub fn clamp(text: &str) -> String
Expand description

Keep the head of text within MAX_CHARS, on a line boundary when one is near.