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§
fn map_err_inner<F, E3>(self, func: F) -> Self::Output
Object Safety§
This trait is not object safe.