oni_comb_parser_rs::prelude

Trait 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,

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§