Rust生成重复字符的字符串
std::iter::repeat('x').take(len).collect::<String>()
来源:https://users.rust-lang.org/t/fill-string-with-repeated-character/1121
std::iter::repeat('x').take(len).collect::<String>()
来源:https://users.rust-lang.org/t/fill-string-with-repeated-character/1121