pub fn advance(
        &mut self,
        count: usize,
        diagnostics: &mut Diagnostics,
    ) -> usize {
        let mut advanced = count.min(self.tokens.len() - self.position);
        self.position += advanced;
        while advanced < count && self.next(diagnostics) {
            advanced += 1;
        }
        advanced
    }
/// Advances the stream's position by `count` positions, possibly generating
/// new tokens, given a diagnostics collection where errors will be placed.
/// Returns how many positions were actually advanced (it won't advance past
/// beyond the end of the stream).
Advances the stream's position by `count` positions, possibly generating
new tokens, given a diagnostics collection where errors will be placed.
Returns how many positions were actually advanced (it won't advance past
beyond the end of the stream).
Advances the stream ' s position by ` count ` positions possibly generating new tokens given a diagnostics collection where errors will be placed . Returns how many positions were actually advanced ( it won ' t advance past beyond the end of the stream ) .
pub fn advance(
        &mut self,
        count: usize,
        diagnostics: &mut Diagnostics,
    ) -> usize {
        let mut advanced = count.min(self.tokens.len() - self.position);
        self.position += advanced;
        while advanced < count && self.next(diagnostics) {
            advanced += 1;
        }
        advanced
    }
pub fn advance ( & mut self , count : usize , diagnostics : & mut Diagnostics , ) -> usize { let mut advanced = count . min ( self . tokens . len ( ) - self . position ) ; self . position += advanced ; while advanced < count && self . next ( diagnostics ) { advanced += 1 ; } advanced }
Advances the stream's position by `count` positions, possibly generating
new tokens, given a diagnostics collection where errors will be placed.
Advances the stream ' s position by ` count ` positions possibly generating new tokens given a diagnostics collection where errors will be placed .
&mut self
count
usize
diagnostics
&mut Diagnostics
&mut self
count
usize
diagnostics
&mut Diagnostics