[][src]Trait dangerous::error::FromContext

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

Implemented for errors that collect contexts.

Required methods

fn from_context<C>(self, input: &'i Input, context: C) -> Self where
    C: Context

Return Self with context.

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

Loading content...

Implementors

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

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

Loading content...