oni_comb_parser_rs/extension/parsers/
taken_parsers.rsuse crate::core::Element;
use crate::extension::parsers::element_parsers::ElementParsers;
use std::fmt::Debug;
pub trait TakenParsers: ElementParsers {
fn take<'a, I>(n: usize) -> Self::P<'a, I, &'a [I]>;
fn take_while0<'a, I, F>(f: F) -> Self::P<'a, I, &'a [I]>
where
F: Fn(&I) -> bool + 'a,
I: Element + Debug + 'a;
fn take_while1<'a, I, F>(f: F) -> Self::P<'a, I, &'a [I]>
where
F: Fn(&I) -> bool + 'a,
I: Element + Debug + 'a;
fn take_while_n_m<'a, I, F>(n: usize, m: usize, f: F) -> Self::P<'a, I, &'a [I]>
where
F: Fn(&I) -> bool + 'a,
I: Element + Debug + 'a;
fn take_till0<'a, I, F>(f: F) -> Self::P<'a, I, &'a [I]>
where
F: Fn(&I) -> bool + 'a,
I: Element + Debug + 'a;
fn take_till1<'a, I, F>(f: F) -> Self::P<'a, I, &'a [I]>
where
F: Fn(&I) -> bool + 'a,
I: Element + Debug + 'a;
}