[][src]Trait string_err::result_ext::ResultExt

pub trait ResultExt where
    Self: Sized + Try
{ fn map_err_msg<R: From<Self::Error>>(
        self,
        msg: impl Into<String>
    ) -> Result<Self::Ok, StringError<R>> { ... } }

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

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

Loading content...

Implementors

impl<T: Sized + Try> ResultExt for T[src]

Loading content...