Trait testdrive::ResultExt[][src]

pub trait ResultExt<T, E> {
    fn err_ctx(self, ctx: impl Into<String>) -> Result<T, Error>
    where
        Self: Sized
;
fn with_err_ctx(self, ctx: impl FnOnce() -> String) -> Result<T, Error>
    where
        Self: Sized
;
fn err_hint(
        self,
        ctx: impl Into<String>,
        hint: impl IntoIterator<Item = impl Into<String>>
    ) -> Result<T, Error>
    where
        Self: Sized
; }
Expand description

Extra methods that integrate std Results with Error

Required methods

Wrap any error in an Error with the given context message

Wrap any error in an Error with the given context message, which is lazily evaluated

Wrap any error in an Error with the given context message and additional hints

Implementations on Foreign Types

Implementors