pub fn update_frontier(&mut self, new_frontier: usize) {
        if self.state.frontier.get(1) == Some(&new_frontier) {
            self.state.frontier.remove(0);
        } else {
            self.state.frontier[0] = new_frontier;
        }
    }
/// Updates the frontier. This can go backward, but most typically
/// goes forward by 1 line (compared to the `get_frontier` result).
Updates the frontier. This can go backward, but most typically
goes forward by 1 line (compared to the `get_frontier` result).
Updates the frontier . This can go backward but most typically goes forward by 1 line ( compared to the ` get_frontier ` result ) .
pub fn update_frontier(&mut self, new_frontier: usize) {
        if self.state.frontier.get(1) == Some(&new_frontier) {
            self.state.frontier.remove(0);
        } else {
            self.state.frontier[0] = new_frontier;
        }
    }
pub fn update_frontier ( & mut self , new_frontier : usize ) { if self . state . frontier . get ( 1 ) == Some ( & new_frontier ) { self . state . frontier . remove ( 0 ) ; } else { self . state . frontier [ 0 ] = new_frontier ; } }
Updates the frontier.
Updates the frontier .
&mut self
new_frontier
usize