1 2 3 4
/// Repeat the string `s` `n` times by concatenating. pub fn repeat_str<S: Into<String> + Clone>(s: S, n: usize) -> String { std::iter::repeat(s.into()).take(n).collect::<String>() }