Skip to main content

substring

Function substring 

Source
pub fn substring(s: &Str, start: f64, end: f64) -> Str
Expand description

substring: negatives clamp to 0 (not from the end), and the arguments swap when start > end.