oni_comb_parser_rs::prelude

Trait ElementsParsers

Source
pub trait ElementsParsers: Parsers {
    // Required methods
    fn seq<'a, 'b, I>(tag: &'b [I]) -> Self::P<'a, I, &'a [I]>
       where I: PartialEq + Debug + 'a,
             'b: 'a;
    fn tag<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>
       where 'b: 'a;
    fn tag_no_case<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>
       where 'b: 'a;
    fn regex<'a>(pattern: &str) -> Self::P<'a, char, String>;
}

Required Methods§

Source

fn seq<'a, 'b, I>(tag: &'b [I]) -> Self::P<'a, I, &'a [I]>
where I: PartialEq + Debug + 'a, 'b: 'a,

Source

fn tag<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>
where 'b: 'a,

Source

fn tag_no_case<'a, 'b>(tag: &'b str) -> Self::P<'a, char, &'a str>
where 'b: 'a,

Source

fn regex<'a>(pattern: &str) -> Self::P<'a, char, String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§