oni_comb_parser_rs/extension/parsers/
lazy_parsers.rs

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

pub trait LazyParsers: Parsers {
  fn lazy<'a, I, A, F>(f: F) -> Self::P<'a, I, A>
  where
    F: Fn() -> Self::P<'a, I, A> + 'a,
    A: Debug + 'a;
}