repeat

Function repeat 

Source
pub fn repeat<Value: Display + Clone>(
    value: Value,
    times: usize,
) -> FmtIter<impl Iterator<Item = Value> + ExactSizeIterator + Clone> 
Expand description

Print a certain value multiple times.

Example:

let fmt_iter = repeat(123, 5);
assert_eq!(fmt_iter.to_string(), "123123123123123");