Trait dangerous::error::External[][src]

pub trait External<'i>: Sized {
    fn span(&self) -> Option<Span> { ... }
fn retry_requirement(&self) -> Option<RetryRequirement> { ... }
fn push_backtrace<E>(self, error: E) -> E
    where
        E: WithContext<'i>
, { ... } }
Expand description

Implemented for errors that aren’t a first-class citizen to dangerous but wish to add additional information.

External errors are consumed with Input::into_external() or Reader::try_expect_external().

Provided methods

The specific section of input that caused an error.

Returns the requirement, if applicable, to retry processing the Input.

External errors are designed for producers of errors and won’t expose themselves directly to consumers so they do not require ToRetryRequirement implementations but can return a RetryRequirement.

Pushes a child backtrace to the base error generated.

Push from the bottom of the trace (from the source of the error) up.

Implementations on Foreign Types

This is supported on crate feature nom only.
This is supported on crate feature nom only.
This is supported on crate features nom and alloc only.
This is supported on crate feature std only.

Implementors