Guide API
Skip to main content

slice_cols

Function slice_cols 

Source
pub fn slice_cols(s: &str, skip: i32, width: i32) -> String
Expand description

The part of s from display column skip that fits in width display columns. A wide glyph cut by either edge turns into spaces for its visible half, so the result never starts mid-glyph.