devela/media/font/
error.rs
1#[doc = crate::TAG_RESULT!()]
7pub type FontResult<T> = crate::Result<T, FontError>;
9
10#[doc = crate::TAG_ERROR_COMPOSITE!()]
11#[non_exhaustive]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
14pub enum FontError {
15 FontError,
17}
18
19mod core_impls {
20 use crate::{Display, FmtResult, FontError, Formatter};
21
22 impl crate::Error for FontError {}
23 impl crate::ExtError for FontError {
24 type Kind = ();
25 fn error_eq(&self, other: &Self) -> bool {
26 self == other
27 }
28 fn error_kind(&self) -> Self::Kind {}
29 }
30
31 impl Display for FontError {
32 fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()> {
33 write![f, "FontError"]
34 }
35 }
36}