| 1 | use core::fmt; |
|---|---|
| 2 | |
| 3 | /// Invalid font data error. |
| 4 | #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] |
| 5 | pub struct InvalidFont; |
| 6 | |
| 7 | impl fmt::Display for InvalidFont { |
| 8 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |
| 9 | write!(f, "InvalidFont") |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | #[cfg(feature = "std")] |
| 14 | impl std::error::Error for InvalidFont {} |
| 15 |
