oni_comb_parser_rs::prelude

Trait LoggingParser

Source
pub trait LoggingParser<'a>: ParserRunner<'a> {
    // Required methods
    fn log(
        self,
        name: &'a str,
        log_level: LogLevel,
    ) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Input: Debug,
             Self::Output: Debug + 'a;
    fn debug(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Input: Debug,
             Self::Output: Debug + 'a;
    fn info(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Input: Debug,
             Self::Output: Debug + 'a;
    fn warn(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Input: Debug,
             Self::Output: Debug + 'a;
    fn error(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Input: Debug,
             Self::Output: Debug + 'a;
    fn name(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
       where Self::Input: Debug,
             Self::Output: Debug + 'a;
}

Required Methods§

Source

fn log( self, name: &'a str, log_level: LogLevel, ) -> Self::P<'a, Self::Input, Self::Output>
where Self::Input: Debug, Self::Output: Debug + 'a,

Source

fn debug(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
where Self::Input: Debug, Self::Output: Debug + 'a,

Source

fn info(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
where Self::Input: Debug, Self::Output: Debug + 'a,

Source

fn warn(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
where Self::Input: Debug, Self::Output: Debug + 'a,

Source

fn error(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
where Self::Input: Debug, Self::Output: Debug + 'a,

Source

fn name(self, name: &'a str) -> Self::P<'a, Self::Input, Self::Output>
where Self::Input: Debug, Self::Output: Debug + 'a,

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§

Source§

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