1 2 3 4 5 6 7 8 9
#![feature(try_trait)] use std::fmt; use std::mem; use std::ops::Try; use std::error::Error; #[derive(Debug, Clone)] pub struct BoxResult<T, E: ?Sized>(Result<T, Box<E>>);
1 2 3 4 5 6 7 8 9
#![feature(try_trait)] use std::fmt; use std::mem; use std::ops::Try; use std::error::Error; #[derive(Debug, Clone)] pub struct BoxResult<T, E: ?Sized>(Result<T, Box<E>>);