Skip to main content

cut

Function cut 

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

The start of text that fits in PREVIEW_UNITS UTF-16 code units, never splitting a character.