oni_comb_parser_rs/extension/parsers/
cache_parsers.rs

1
2
3
4
5
6
7
8
9
use crate::core::Parsers;
use std::fmt::Debug;

pub trait CacheParsers: Parsers {
  fn cache<'a, I, A>(parser: Self::P<'a, I, A>) -> Self::P<'a, I, A>
  where
    I: Clone + 'a,
    A: Clone + Debug + 'a;
}