ResultExt

Trait ResultExt 

Source
pub trait ResultExt<T> {
    // Required method
    fn map_grove_error(self, context: impl Into<String>) -> GroveResult<T>;
}
Expand description

Result extension trait for error handling

Required Methods§

Source

fn map_grove_error(self, context: impl Into<String>) -> GroveResult<T>

Map error to GroveError

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> ResultExt<T> for Result<T, E>
where E: Error + Send + Sync + 'static,

Source§

fn map_grove_error(self, context: impl Into<String>) -> GroveResult<T>

Implementors§