[][src]Trait dangerous::WithContext

pub trait WithContext<'i> {
    pub fn with_context<C>(self, input: Input<'i>, context: C) -> Self
    where
        C: Context
; }

Implemented for errors that collect Contexts.

Required methods

pub fn with_context<C>(self, input: Input<'i>, context: C) -> Self where
    C: Context
[src]

Return Self with context.

This method is used for adding parent contexts to errors bubbling up.

Loading content...

Implementations on Foreign Types

impl<'i, S> WithContext<'i> for Box<Expected<'i, S>> where
    S: ContextStackBuilder
[src]

Loading content...

Implementors

impl<'i> WithContext<'i> for Fatal[src]

impl<'i> WithContext<'i> for Invalid[src]

impl<'i, S> WithContext<'i> for Expected<'i, S> where
    S: ContextStackBuilder
[src]

Loading content...