failure icon indicating copy to clipboard operation
failure copied to clipboard

Rework ResultExt to have err_msg like method

Open JustAPerson opened this issue 7 years ago • 1 comments

Right now the ResultExt trait requires the bound E: Fail, but can this bound be moved to individual methods? Would anyone else enjoy a method equivalent to |e| { e.map_err(|_| err_msg("message")) } to construct an Error easily out of any Result type.

JustAPerson avatar May 23 '18 03:05 JustAPerson

Can you give more context about the code you want to write and the API change you want? I'm having some trouble following :)

withoutboats avatar May 29 '18 22:05 withoutboats