[−][src]Trait string_err::result_ext::ResultExt
Extention trait for Result
-like types
See the module documentation for examples
Provided methods
fn map_err_msg<R: From<Self::Error>>(
self,
msg: impl Into<String>
) -> Result<Self::Ok, StringError<R>>
self,
msg: impl Into<String>
) -> Result<Self::Ok, StringError<R>>
Maps an error into StringError
with a message
Errors
This will return Err( StringError { .. } )
if the original
result was Err
, else it will return Ok