pub type AnyResult<T, E = AnyError> = Result<T, E>;Expand description
A type alias for Result<T, E> where E defaults to AnyError.
This type provides a convenient way to return results that can contain any error type,
defaulting to AnyError if no specific error type is specified.
§Type Parameters
T- The type of the successful result.E- The error type, defaulting toAnyError.
Aliased Type§
pub enum AnyResult<T, E = AnyError> {
Ok(T),
Err(E),
}