snip

Function snip 

Source
pub fn snip(text: &str, startposition: usize, count: i64) -> String
Expand description

Removes a slice starting at the 0-based startposition.

A count of -1 removes to the end; non-positive counts are no-ops.