1 2 3 4 5 6 7 8 9
pub trait ResultExt { type T; type E; } impl<T, E> ResultExt for Result<T, E> { type T = T; type E = E; }