Skip to main content

CtxExt

Trait CtxExt 

Source
pub trait CtxExt<T> {
    // Required methods
    fn ctx(self, message: impl Into<String>) -> Result<T>;
    fn ctx_with<F, S>(self, f: F) -> Result<T>
       where F: FnOnce() -> S,
             S: Into<String>;
    fn here(self) -> Result<T>;
}

Required Methods§

Source

fn ctx(self, message: impl Into<String>) -> Result<T>

Source

fn ctx_with<F, S>(self, f: F) -> Result<T>
where F: FnOnce() -> S, S: Into<String>,

Source

fn here(self) -> Result<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E: Into<Error>> CtxExt<T> for Result<T, E>

Source§

fn ctx(self, message: impl Into<String>) -> Result<T>

Source§

fn ctx_with<F, S>(self, f: F) -> Result<T>
where F: FnOnce() -> S, S: Into<String>,

Source§

fn here(self) -> Result<T>

Implementors§