pub fn curr_idx(&self, orig_pos: usize) -> usize {
        debug_assert!(
            self.history
                .iter()
                .filter(|(k, _)| (*k).usize() == orig_pos)
                .count()
                <= 1
        );

        match self
            .history
            .iter()
            .filter(|(k, _)| (*k).usize() == orig_pos)
            .map(|(_, curr)| *curr)
            .next()
        {
            Some(curr_idx) => curr_idx.usize(),
            None => orig_pos,
        }
    }
/// Retrieve the current value of an original index from the map.
Retrieve the current value of an original index from the map.
Retrieve the current value of an original index from the map .
pub fn curr_idx(&self, orig_pos: usize) -> usize {
        debug_assert!(
            self.history
                .iter()
                .filter(|(k, _)| (*k).usize() == orig_pos)
                .count()
                <= 1
        );
        match self
            .history
            .iter()
            .filter(|(k, _)| (*k).usize() == orig_pos)
            .map(|(_, curr)| *curr)
            .next()
        {
            Some(curr_idx) => curr_idx.usize(),
            None => orig_pos,
        }
    }
pub fn curr_idx ( & self , orig_pos : usize ) -> usize { debug_assert ! ( self history iter ( ) filter ( ( k ) ( k ) usize ( ) orig_pos ) count ( ) 1 ) ; match self . history . iter ( ) . filter ( | ( k , _ ) | ( * k ) . usize ( ) == orig_pos ) . map ( | ( _ , curr ) | * curr ) . next ( ) { Some ( curr_idx ) => curr_idx . usize ( ) , None => orig_pos , } }
Retrieve the current value of an original index from the map.
Retrieve the current value of an original index from the map .
&self
orig_pos
usize
&self
orig_pos
usize