devela/code/result/error/
reexports.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// devela::code::result::error::reexports
//
//! Reexported error-related items.
//

#![allow(unused_imports)]

use crate::reexport;
reexport! { rust: core::error,
    doc: "A trait representing the basic expectations for error values.",
    Error
}

#[cfg(feature = "error")]
pub use crate_errors::*;
#[cfg(feature = "error")]
pub(crate) mod crate_errors {
    /* data */
    #[doc(inline)]
    #[cfg(data··)]
    pub use crate::data::{DataError, DataResult};

    /* media */
    #[doc(inline)]
    #[cfg(feature = "audio")]
    pub use crate::media::audio::{AudioError, AudioResult};
    #[doc(inline)]
    #[cfg(feature = "color")]
    pub use crate::media::color::{ColorError, ColorResult};
    #[doc(inline)]
    #[cfg(feature = "draw")]
    pub use crate::media::draw::{DrawError, DrawResult};
    #[doc(inline)]
    #[cfg(feature = "font")]
    pub use crate::media::font::{FontError, FontResult};
    #[doc(inline)]
    #[cfg(feature = "image")]
    pub use crate::media::image::{ImageError, ImageResult};
    #[doc(inline)]
    #[cfg(feature = "midi")]
    pub use crate::media::midi::{MidiError, MidiResult};
    #[doc(inline)]
    #[cfg(media··)]
    pub use crate::media::{MediaError, MediaResult};

    /* num */
    #[doc(inline)]
    pub use crate::num::{NumError, NumResult};

    /* phys */
    #[doc(inline)]
    #[cfg(feature = "time")]
    pub use crate::phys::time::{TimeError, TimeResult};

    /* sys */
    #[doc(inline)]
    #[cfg(feature = "io")]
    pub use crate::sys::io::{IoError, IoErrorKind, IoResult};

    #[doc(inline)]
    #[cfg(text··)]
    pub use crate::text::{TextError, TextResult};

    /* ui */
    #[doc(inline)]
    #[cfg(feature = "layout")]
    pub use crate::ui::layout::{LayoutError, LayoutResult};
}