pub trait ErrorMapping<T, E, U> {
// Required method
fn into_error(self) -> Result<T, Error<U>>;
}Expand description
Helper trait for converting a value into a unified error-aware result type.
Required Methods§
Sourcefn into_error(self) -> Result<T, Error<U>>
fn into_error(self) -> Result<T, Error<U>>
Converts the value into a Result, wrapping it in a structured error type if needed.