count_cycle

Function count_cycle 

Source
pub fn count_cycle<T>(
    iter: Box<dyn Iterator<Item = T>>,
    n: usize,
) -> Box<dyn Iterator<Item = (usize, T)>>
where T: Clone + 'static,