pub trait StandardErrorConversion<T> {
// Required method
fn to_standard_error(self, context: &str) -> Result<T, String>;
}
Expand description
Standard error conversion pattern for consistent error formatting
Required Methods§
Sourcefn to_standard_error(self, context: &str) -> Result<T, String>
fn to_standard_error(self, context: &str) -> Result<T, String>
Convert error to standard string format with context