macro_rules! repeat { ($s: expr, $n: expr) => { ... }; }
Expand description
Creates a new string slice by repeating a string slice n times.
§Examples
const S: &str = "abc";
const SSSS: &str = const_str::repeat!(S, 4);
assert_eq!(SSSS, "abcabcabcabc");