Trait tvix_eval::errors::AddContext

source ·
pub trait AddContext {
    // Required method
    fn context<S: Into<String>>(self, ctx: S) -> Self;
}

Required Methods§

source

fn context<S: Into<String>>(self, ctx: S) -> Self

Add context to the error-carrying type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> AddContext for Result<T, ErrorKind>

source§

fn context<S: Into<String>>(self, ctx: S) -> Self

source§

impl<T> AddContext for Result<T, Error>

source§

fn context<S: Into<String>>(self, ctx: S) -> Self

Implementors§