Function substr

Source
pub fn substr(
    str: &str,
    start: usize,
    length: usize,
    append: Option<&str>,
) -> String
Expand description

Truncate a string, optionally appending another string or appending "..." if the append string is None