pub fn consume_char(&mut self) -> char {
        let mut iter = self.get_current_input().char_indices();
        let (_, cur_char) = iter.next().unwrap();
        let (next_pos, _) = iter.next().unwrap_or((1, ' '));
        self.pos += next_pos;
        cur_char
    }
/// Returns current char and pushes `self.pos` to the next char.
Returns current char and pushes `self.pos` to the next char.
Returns current char and pushes ` self . pos ` to the next char .
pub fn consume_char(&mut self) -> char {
        let mut iter = self.get_current_input().char_indices();
        let (_, cur_char) = iter.next().unwrap();
        let (next_pos, _) = iter.next().unwrap_or((1, ' '));
        self.pos += next_pos;
        cur_char
    }
pub fn consume_char ( & mut self ) -> char { let mut iter = self . get_current_input ( ) . char_indices ( ) ; let ( _ , cur_char ) = iter . next ( ) . unwrap ( ) ; let ( next_pos , _ ) = iter . next ( ) . unwrap_or ( ( 1 , ' ' ) ) ; self . pos += next_pos ; cur_char }
Returns current char and pushes `self.pos` to the next char.
Returns current char and pushes ` self . pos ` to the next char .
&mut self
&mut self