Skip to main content

ContextWithLocation

Trait ContextWithLocation 

Source
pub trait ContextWithLocation<T> {
    // Required method
    fn context_with_location(self, msg: impl Into<String>) -> Result<T>;
}

Required Methods§

Source

fn context_with_location(self, msg: impl Into<String>) -> Result<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E> ContextWithLocation<T> for Result<T, E>
where E: Into<Error>,

Source§

fn context_with_location(self, msg: impl Into<String>) -> Result<T>

Implementors§