pub trait ContextExt<T, E> {
// Required methods
fn with_io_context<S: Into<String>>(self, msg: S) -> Result<T>;
fn with_parse_context<S: Into<String>>(self, msg: S) -> Result<T>;
}Expand description
Extension trait for adding common context to results
Required Methods§
fn with_io_context<S: Into<String>>(self, msg: S) -> Result<T>
fn with_parse_context<S: Into<String>>(self, msg: S) -> Result<T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".