Trait ContextAware

Source
pub trait ContextAware<EE> {
    // Required methods
    fn push_context(&mut self, context: &'static str) -> Option<Result<EE, EE>>;
    fn pop_context<I, O, E: FromExternalError<I, EE>>(
        &mut self,
        res: &IResult<I, O, E>,
    ) -> Option<Result<EE, EE>>;
}

Required Methods§

Source

fn push_context(&mut self, context: &'static str) -> Option<Result<EE, EE>>

Source

fn pop_context<I, O, E: FromExternalError<I, EE>>( &mut self, res: &IResult<I, O, E>, ) -> Option<Result<EE, EE>>

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§