devela/media/font/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// devela::media::font::error
//
//!
//

#[doc = crate::TAG_RESULT!()]
/// A font-related result.
pub type FontResult<T> = crate::Result<T, FontError>;

#[doc = crate::TAG_ERROR_COMPOSITE!()]
/// A font-related error.
#[non_exhaustive]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum FontError {
    /// TEMP
    FontError,
}

mod core_impls {
    use crate::{Display, FmtResult, FontError, Formatter};

    impl crate::Error for FontError {}
    impl crate::ExtError for FontError {
        type Kind = ();
        fn error_eq(&self, other: &Self) -> bool {
            self == other
        }
        fn error_kind(&self) -> Self::Kind {}
    }

    impl Display for FontError {
        fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()> {
            write![f, "FontError"]
        }
    }
}