Trait oni_comb_parser_rs::prelude::ElementParsers

source ·
pub trait ElementParsers: Parsers {
Show 28 methods // Required methods fn elm_pred_ref<'a, I, F>(f: F) -> Self::P<'a, I, &'a I> where F: Fn(&I) -> bool + 'a, I: Element + PartialEq + 'a; fn elm_space_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a; fn elm_multi_space_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a; fn elm_alpha_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a; fn elm_alpha_digit_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a; fn elm_digit_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a; fn elm_hex_digit_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a; fn elm_oct_digit_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a; fn elm_ref_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, &'a I> where I: PartialEq + Display + Debug + 'a, S: Set<I> + ?Sized; fn elm_ref_in<'a, I>(start: I, end: I) -> Self::P<'a, I, &'a I> where I: PartialEq + PartialOrd + Display + Debug + Copy + 'a; fn elm_ref_from_until<'a, I>(start: I, end: I) -> Self::P<'a, I, &'a I> where I: PartialEq + PartialOrd + Display + Debug + Copy + 'a; fn none_ref_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, &'a I> where I: PartialEq + Display + Debug + 'a, S: Set<I> + ?Sized; // Provided methods fn elm_any_ref<'a, I>() -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a { ... } fn elm_any<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_ref<'a, I>(element: I) -> Self::P<'a, I, &'a I> where I: Element + PartialEq + 'a { ... } fn elm<'a, I>(element: I) -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_pred<'a, I, F>(f: F) -> Self::P<'a, I, I> where F: Fn(&I) -> bool + 'a, I: Element + Clone + PartialEq + 'a { ... } fn elm_space<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_multi_space<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_alpha<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_alpha_digit<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_digit<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_hex_digit<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_oct_digit<'a, I>() -> Self::P<'a, I, I> where I: Element + Clone + PartialEq + 'a { ... } fn elm_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, I> where I: PartialEq + Clone + Display + Debug + 'a, S: Set<I> + ?Sized { ... } fn elm_in<'a, I>(start: I, end: I) -> Self::P<'a, I, I> where I: PartialEq + PartialOrd + Display + Debug + Copy + Clone + 'a { ... } fn elm_from_until<'a, I>(start: I, end: I) -> Self::P<'a, I, I> where I: PartialEq + PartialOrd + Display + Debug + Copy + Clone + 'a { ... } fn none_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, I> where I: PartialEq + Display + Clone + Debug + 'a, S: Set<I> + ?Sized { ... }
}

Required Methods§

source

fn elm_pred_ref<'a, I, F>(f: F) -> Self::P<'a, I, &'a I>
where F: Fn(&I) -> bool + 'a, I: Element + PartialEq + 'a,

source

fn elm_space_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_multi_space_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_alpha_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_alpha_digit_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_digit_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_hex_digit_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_oct_digit_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_ref_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, &'a I>
where I: PartialEq + Display + Debug + 'a, S: Set<I> + ?Sized,

source

fn elm_ref_in<'a, I>(start: I, end: I) -> Self::P<'a, I, &'a I>
where I: PartialEq + PartialOrd + Display + Debug + Copy + 'a,

source

fn elm_ref_from_until<'a, I>(start: I, end: I) -> Self::P<'a, I, &'a I>
where I: PartialEq + PartialOrd + Display + Debug + Copy + 'a,

source

fn none_ref_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, &'a I>
where I: PartialEq + Display + Debug + 'a, S: Set<I> + ?Sized,

Provided Methods§

source

fn elm_any_ref<'a, I>() -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm_any<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_ref<'a, I>(element: I) -> Self::P<'a, I, &'a I>
where I: Element + PartialEq + 'a,

source

fn elm<'a, I>(element: I) -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_pred<'a, I, F>(f: F) -> Self::P<'a, I, I>
where F: Fn(&I) -> bool + 'a, I: Element + Clone + PartialEq + 'a,

source

fn elm_space<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_multi_space<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_alpha<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_alpha_digit<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_digit<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_hex_digit<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_oct_digit<'a, I>() -> Self::P<'a, I, I>
where I: Element + Clone + PartialEq + 'a,

source

fn elm_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, I>
where I: PartialEq + Clone + Display + Debug + 'a, S: Set<I> + ?Sized,

source

fn elm_in<'a, I>(start: I, end: I) -> Self::P<'a, I, I>
where I: PartialEq + PartialOrd + Display + Debug + Copy + Clone + 'a,

source

fn elm_from_until<'a, I>(start: I, end: I) -> Self::P<'a, I, I>
where I: PartialEq + PartialOrd + Display + Debug + Copy + Clone + 'a,

source

fn none_of<'a, I, S>(set: &'a S) -> Self::P<'a, I, I>
where I: PartialEq + Display + Clone + Debug + 'a, S: Set<I> + ?Sized,

Object Safety§

This trait is not object safe.

Implementors§