clone_dyn/
lib.rs

1#![ no_std ]
2#![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ]
3#![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ]
4#![ doc( html_root_url = "https://docs.rs/clone_dyn/latest/clone_dyn/" ) ]
5#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]
6
7/// Namespace with dependencies.
8#[ cfg( feature = "enabled" ) ]
9pub mod dependency
10{
11  #[ cfg( feature = "derive_clone_dyn" ) ]
12  pub use ::clone_dyn_meta;
13  #[ cfg( feature = "clone_dyn_types" ) ]
14  pub use ::clone_dyn_types;
15}
16
17/// Define a private namespace for all its items.
18#[ cfg( feature = "enabled" ) ]
19mod private
20{
21}
22
23#[ cfg( feature = "enabled" ) ]
24#[ doc( inline ) ]
25#[ allow( unused_imports ) ]
26pub use own::*;
27
28/// Own namespace of the module.
29#[ cfg( feature = "enabled" ) ]
30#[ allow( unused_imports ) ]
31pub mod own
32{
33  use super::*;
34  #[ doc( inline ) ]
35  pub use orphan::*;
36}
37
38/// Orphan namespace of the module.
39#[ cfg( feature = "enabled" ) ]
40#[ allow( unused_imports ) ]
41pub mod orphan
42{
43  use super::*;
44
45  #[ doc( inline ) ]
46  pub use exposed::*;
47
48  #[ doc( inline ) ]
49  #[ allow( unused_imports ) ]
50  #[ cfg( feature = "clone_dyn_types" ) ]
51  pub use super::dependency::clone_dyn_types::exposed::*;
52
53}
54
55/// Exposed namespace of the module.
56#[ cfg( feature = "enabled" ) ]
57#[ allow( unused_imports ) ]
58pub mod exposed
59{
60  use super::*;
61  #[ doc( inline ) ]
62  pub use prelude::*;
63}
64
65/// Prelude to use essentials: `use my_module::prelude::*`.
66#[ cfg( feature = "enabled" ) ]
67#[ allow( unused_imports ) ]
68pub mod prelude
69{
70  use super::*;
71
72  #[ doc( inline ) ]
73  #[ allow( unused_imports ) ]
74  #[ cfg( feature = "derive_clone_dyn" ) ]
75  pub use ::clone_dyn_meta::clone_dyn;
76
77  #[ doc( inline ) ]
78  #[ allow( unused_imports ) ]
79  #[ cfg( feature = "clone_dyn_types" ) ]
80  pub use super::dependency::clone_dyn_types::prelude::*;
81
82}