Skip to main content

repeat

Function repeat 

Source
pub fn repeat<T, E>(
    most: usize,
    step: impl FnMut() -> Result<Step<T>, E>,
) -> Result<Repeated<T>, E>
Expand description

Takes step until it says Step::Done, at most most times. step keeps the state of the work itself, since every step is taken once, in order.