[−][src]Trait core_extensions::option_result_ext::ResultExt
Extension trait for Result.
Provided methods
pub fn format_debug_err(self) -> Result<T, String> where
E: Debug,
[src]
E: Debug,
Maps Err(e) to a Debug {:?}
formated String.
Example
use core_extensions::ResultExt; let err_="what \"is\" this"; assert_eq!( Err::<(),&str>(err_).format_debug_err(), Err(format!("{:?}",err_)) );
pub fn format_alt_debug_err(self) -> Result<T, String> where
E: Debug,
[src]
E: Debug,
Maps Err(e) to an alternate Debug {:#?}
formated String.
Example
use core_extensions::ResultExt; let err_="what \"is\" this"; assert_eq!( Err::<(),&str>(err_).format_alt_debug_err(), Err(format!("{:#?}",err_)) );