Skip to main content

clipped

Function clipped 

Source
fn clipped(text: &str, cap: usize) -> String
Expand description

text cut to cap bytes without splitting a character: git’s stderr is arbitrary bytes, and a slice at a byte offset inside one panics.