pub trait SortContext<T> {
// Required methods
fn with_context<F>(self, f: F) -> SortResult<T>
where F: FnOnce() -> String;
fn with_file_context(self, filename: &str) -> SortResult<T>;
}Expand description
Context trait for adding context to errors
Required Methods§
fn with_context<F>(self, f: F) -> SortResult<T>
fn with_file_context(self, filename: &str) -> SortResult<T>
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.