Skip to main content

PathErrorExt

Trait PathErrorExt 

Source
pub trait PathErrorExt<T> {
    // Required method
    fn with_path(self, path: impl Into<PathBuf>) -> Result<T, SsgError>;
}
Expand description

Context extension trait for mapping std::io::Error contexts with path info.

Required Methods§

Source

fn with_path(self, path: impl Into<PathBuf>) -> Result<T, SsgError>

Converts a std::io::Result into an SsgError mapping the path context.

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> PathErrorExt<T> for Result<T>

Source§

fn with_path(self, path: impl Into<PathBuf>) -> Result<T, SsgError>

Implementors§