Function checksums::util::mul_str[][src]

pub fn mul_str(what: &str, n: usize) -> String
Expand description

Create a string consisting of n repetitions of what.

Examples

assert_eq!(checksums::util::mul_str("DIE! ", 3), "DIE! DIE! DIE! ".to_string());