Nested

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§