Trait WithFile

Source
pub trait WithFile<T> {
    // Required method
    fn with_file<F: Into<Arc<str>>>(self, file: F) -> Result<T, RichError>;
}
Expand description

Helper trait to update Result<A, RichError> with the affected source file.

Required Methods§

Source

fn with_file<F: Into<Arc<str>>>(self, file: F) -> Result<T, RichError>

Update the result with the affected source file.

Enable pretty errors.

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> WithFile<T> for Result<T, RichError>

Source§

fn with_file<F: Into<Arc<str>>>(self, file: F) -> Result<T, RichError>

Implementors§