devela/ui/layout/
error.rs

1// devela::ui::layout::error
2//
3//!
4//
5
6#[doc = crate::TAG_RESULT!()]
7/// A layout-related result.
8pub type LayoutResult<T> = crate::Result<T, LayoutError>;
9
10#[doc = crate::TAG_ERROR_COMPOSITE!()]
11/// A layout-related error.
12#[non_exhaustive]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
14pub enum LayoutError {
15    /// TEMP
16    LayoutError,
17}
18
19mod core_impls {
20    use crate::{Display, FmtResult, Formatter, LayoutError};
21
22    impl crate::Error for LayoutError {}
23    impl crate::ExtError for LayoutError {
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 LayoutError {
32        fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()> {
33            write![f, "LayoutError"]
34        }
35    }
36}