type_constructor/type_constuctor/
helper.rs

1/// Internal namespace.
2pub( crate ) mod private
3{
4  use crate::exposed::*;
5
6  ///
7  /// Generate code only if feature::make is enabled.
8  ///
9  /// Do not use manually.
10  ///
11
12  #[ cfg( feature = "make" ) ]
13  #[ macro_export ]
14  macro_rules! _if_make
15  {
16    ( $( $Rest : tt )* ) =>
17    {
18      $( $Rest )*
19    };
20  }
21
22  ///
23  /// Generate code only if feature::make is disabled.
24  ///
25  /// Do not use manually.
26  ///
27
28  #[ cfg( not( feature = "make" ) ) ]
29  #[ macro_export ]
30  macro_rules! _if_make
31  {
32    ( $( $Rest : tt )* ) =>
33    {
34    };
35  }
36
37  pub use _if_make;
38}
39
40/// Protected namespace of the module.
41pub mod protected
42{
43  #[ doc( inline ) ]
44  #[ allow( unused_imports ) ]
45  pub use super::orphan::*;
46}
47
48#[ doc( inline ) ]
49#[ allow( unused_imports ) ]
50pub use protected::*;
51
52/// Orphan namespace of the module.
53pub mod orphan
54{
55  #[ doc( inline ) ]
56  #[ allow( unused_imports ) ]
57  pub use super::exposed::*;
58}
59
60/// Exposed namespace of the module.
61pub mod exposed
62{
63  #[ doc( inline ) ]
64  #[ allow( unused_imports ) ]
65  pub use super::prelude::*;
66}
67
68
69/// Prelude to use essentials: `use my_module::prelude::*`.
70pub mod prelude
71{
72  #[ doc( inline ) ]
73  #[ allow( unused_imports ) ]
74  pub use super::private::
75  {
76    _if_make,
77  };
78}