Skip to main content

PathsInErrorsExt

Trait PathsInErrorsExt 

Source
pub trait PathsInErrorsExt {
    // Provided method
    fn with_paths_in_errors(&self) -> SysWithPathsInErrors<'_, Self> { ... }
}
Expand description

Extension trait that provides the with_paths_in_errors method.

Import this trait to use .with_paths_in_errors() on any type.

Provided Methods§

Source

fn with_paths_in_errors(&self) -> SysWithPathsInErrors<'_, Self>

Wraps self in a SysWithPathsInErrors that includes paths in error messages.

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.

Implementors§