Trait naga::span::MapErrWithSpan

source ·
pub trait MapErrWithSpan<E, E2>: Sized {
    type Output: Sized;

    // Required method
    fn map_err_inner<F, E3>(self, func: F) -> Self::Output
       where F: FnOnce(E) -> WithSpan<E3>,
             E2: From<E3>;
}
Expand description

Convenience trait for Result, adding a MapErrWithSpan::map_err_inner mapping to WithSpan::and_then.

Required Associated Types§

Required Methods§

source

fn map_err_inner<F, E3>(self, func: F) -> Self::Output
where F: FnOnce(E) -> WithSpan<E3>, E2: From<E3>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, E, E2> MapErrWithSpan<E, E2> for Result<T, WithSpan<E>>

source§

type Output = Result<T, WithSpan<E2>>

source§

fn map_err_inner<F, E3>(self, func: F) -> Result<T, WithSpan<E2>>
where F: FnOnce(E) -> WithSpan<E3>, E2: From<E3>,

Implementors§