Skip to main content

clip_material

Function clip_material 

Source
pub fn clip_material(text: &str, head: usize, tail: usize) -> String
Expand description

text cut to its first head and last tail characters, with a marker where the middle was, when it is longer than both together.