Trait oni_comb_parser_rs::prelude::ParserFilter

source ·
pub trait ParserFilter<'a>: ParserRunner<'a> {
    // Required method
    fn with_filter<F>(self, f: F) -> Self
       where F: Fn(&Self::Output) -> bool + 'a,
             Self::Input: 'a,
             Self::Output: 'a,
             Self: Sized;

    // Provided method
    fn with_filter_not<F>(self, f: F) -> Self
       where F: Fn(&Self::Output) -> bool + 'a,
             Self::Input: 'a,
             Self::Output: 'a,
             Self: Sized { ... }
}

Required Methods§

source

fn with_filter<F>(self, f: F) -> Self
where F: Fn(&Self::Output) -> bool + 'a, Self::Input: 'a, Self::Output: 'a, Self: Sized,

解析結果をフィルターする[Parser]を返す。

Provided Methods§

source

fn with_filter_not<F>(self, f: F) -> Self
where F: Fn(&Self::Output) -> bool + 'a, Self::Input: 'a, Self::Output: 'a, Self: Sized,

解析結果をフィルターする[Parser]を返す。

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, I, A> ParserFilter<'a> for Parser<'a, I, A>