devela/num/primitive/
mod.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
// devela::num::primitive
//
//! Helpers for converting between primitives.
//

#[cfg(prim···)]
crate::items! {
    #[cfg_attr(feature = "nightly_doc", doc(cfg(prim···)))]
    mod namespace; // Cast

    #[cfg(test)]
    mod tests;
}

#[cfg(feature = "cast")]
mod cast; // PrimitiveCast
#[cfg(feature = "join")]
mod join; // PrimitiveJoin
#[cfg(feature = "split")]
mod split; // PrimitiveSplit

crate::items! { // structural access: _mods, _all
    #[allow(unused)]
    pub use _mods::*;

    mod _mods {
        #[cfg(prim···)]
        pub use super::namespace::*;

        #[cfg(feature = "cast")]
        #[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "cast")))]
        pub use super::cast::*;

        #[cfg(feature = "join")]
        #[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "join")))]
        pub use super::join::*;

        #[cfg(feature = "split")]
        #[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "split")))]
        pub use super::split::*;
    }
    pub(super) mod _all { #![allow(unused)]
        #[doc(inline)]
        pub use super::_mods::*;
    }
}