oni_comb_parser_rs/internal/parser_impl/
cache_parser_impl.rs

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

use crate::core::Parser;
use crate::extension::parser::CacheParser;
use crate::extension::parsers::CacheParsers;
use crate::internal::ParsersImpl;

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