Trait fatality::Nested

source ·
pub trait Nested<T, E: Split>
where Self: Sized,
{ // Required method fn into_nested( self, ) -> Result<Result<T, <E as Split>::Jfyi>, <E as Split>::Fatal>; }
Expand description

Converts a flat, yet splitable error into a nested Result<Result<_,Jfyi>, Fatal> error type.

Required Methods§

source

fn into_nested( self, ) -> Result<Result<T, <E as Split>::Jfyi>, <E as Split>::Fatal>

Convert into a nested error rather than a flat one, commonly for direct handling.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, E: Split> Nested<T, E> for Result<T, E>

source§

fn into_nested( self, ) -> Result<Result<T, <E as Split>::Jfyi>, <E as Split>::Fatal>

Implementors§