fn bump(&mut self) {
        let next_pos_idx = self.next_pos.to_usize();

        if next_pos_idx < self.src.len() {
            let next_ch = self.src[next_pos_idx..].chars().next().unwrap();
            let next_ch_len = next_ch.len_utf8();

            self.peek_ch = Some(next_ch);
            self.pos = self.next_pos;
            self.next_pos = self.next_pos + Pos::from_usize(next_ch_len);
        } else {
            self.peek_ch = None;
            self.pos = self.next_pos;
        }
    }
/// Advances the Scanner by one character.
Advances the Scanner by one character.
Advances the Scanner by one character .
fn bump(&mut self) {
        let next_pos_idx = self.next_pos.to_usize();
        if next_pos_idx < self.src.len() {
            let next_ch = self.src[next_pos_idx..].chars().next().unwrap();
            let next_ch_len = next_ch.len_utf8();
            self.peek_ch = Some(next_ch);
            self.pos = self.next_pos;
            self.next_pos = self.next_pos + Pos::from_usize(next_ch_len);
        } else {
            self.peek_ch = None;
            self.pos = self.next_pos;
        }
    }
fn bump ( & mut self ) { let next_pos_idx = self . next_pos . to_usize ( ) ; if next_pos_idx < self . src . len ( ) { let next_ch = self . src [ next_pos_idx .. ] . chars ( ) . next ( ) . unwrap ( ) ; let next_ch_len = next_ch . len_utf8 ( ) ; self . peek_ch = Some ( next_ch ) ; self . pos = self . next_pos ; self . next_pos = self . next_pos + Pos :: from_usize ( next_ch_len ) ; } else { self . peek_ch = None ; self . pos = self . next_pos ; } }
Advances the Scanner by one character.
Advances the Scanner by one character .
&mut self
&mut self