Skip to main content

fack_core/
error.rs

1//! A module for the [`Error`] trait and its implementations.
2//!
3//! See the [`Error`] trait for more information.
4
5use core::error::Error as CoreError;
6
7/// A trait for types that can be used to represent an error.
8///
9/// Particularly, this is a supertrait of the core library [`Error`] trait.
10///
11/// [`Error`]: CoreError
12pub trait Error: CoreError {}
13
14/// Blanket implementation of [`Error`] for types that are also core
15/// [`Error`](CoreError)s.
16impl<E> Error for E where E: CoreError {}