rune/parse/
traits.rs

1/// Advance a parser by a given amount.
2pub(crate) trait Advance {
3    /// Error produced when advancing.
4    type Error;
5
6    /// Advance the parser by `n` tokens.
7    fn advance(&mut self, n: usize) -> Result<(), Self::Error>;
8}