oni_comb_parser_rs/internal/parser_impl/
peek_parser_impl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::core::Parser;
use crate::extension::parsers::PeekParsers;
use crate::internal::ParsersImpl;
use crate::prelude::PeekParser;
use std::fmt::Debug;

impl<'a, I, A> PeekParser<'a> for Parser<'a, I, A> {
  fn peek(self) -> Self::P<'a, Self::Input, Self::Output>
  where
    Self::Output: Debug + 'a, {
    ParsersImpl::peek(self)
  }
}