Skip to main content

attempts

Function attempts 

Source
pub fn attempts<T, E>(
    most: usize,
    at: impl FnMut(&usize) -> Result<Probe<T>, E>,
) -> Result<Option<T>, E>
Expand description

probe over attempts 0, 1, 2, … — at most most of them — for a sequence at makes itself (the k-th of a set of directions, the next draw of a seeded generator).