oni_comb_parser_rs/internal/parser_impl/
collect_parser_impl.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::fmt::Debug;

use crate::core::Parser;
use crate::extension::parser::CollectParser;
use crate::extension::parsers::CollectParsers;
use crate::internal::ParsersImpl;

impl<'a, I, A> CollectParser<'a> for Parser<'a, I, A> {
  fn collect(self) -> Self::P<'a, Self::Input, &'a [Self::Input]>
  where
    Self::Output: Debug + 'a, {
    ParsersImpl::collect(self)
  }
}