devela/code/util/
unroll.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// devela::code::util::unroll
//
//! Re-exports the code-generated [`unroll!`] macro.
//

#[cfg_attr(feature = "nightly_doc", doc(cfg(feature = "_unroll")))]
mod codegen {
    include!(concat!(env!("OUT_DIR"), "/build/unroll.rs")); // `unroll!` macro
}

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

    mod _mods {
        pub use super::codegen::*;
    }
    pub(super) mod _all {
        #[doc(inline)]
        pub use super::_mods::*;
    }
}