reflect_tools/
lib.rs

1// #![ cfg_attr( feature = "no_std", 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/reflect_tools/latest/reflect_tools/" ) ]
5#![ cfg_attr( doc, doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "readme.md" ) ) ) ]
6#![ cfg_attr( not( doc ), doc = "Reflection utilities" ) ]
7#![ allow( clippy::used_underscore_items ) ]
8#![ allow( clippy::len_without_is_empty ) ]
9#![ allow( clippy::iter_skip_next ) ]
10#![ allow( clippy::must_use_candidate ) ]
11#![ allow( clippy::used_underscore_binding ) ]
12#![ allow( clippy::needless_return ) ]
13#![ allow( clippy::missing_panics_doc ) ]
14#![ allow( clippy::elidable_lifetime_names ) ]
15#![ allow( clippy::std_instead_of_core ) ]
16#![ allow( clippy::semicolon_if_nothing_returned ) ]
17#![ allow( clippy::implicit_hasher ) ]
18#![ allow( clippy::doc_markdown ) ]
19#![ allow( clippy::useless_conversion ) ]
20#![ allow( clippy::needless_range_loop ) ]
21
22#[ cfg( feature = "enabled" ) ]
23#[ cfg( feature = "reflect_types" ) ]
24pub mod reflect;
25
26/// Namespace with dependencies.
27#[ cfg( feature = "enabled" ) ]
28pub mod dependency
29{
30  // #[ cfg( any_derive ) ]
31  pub use ::reflect_tools_meta;
32}
33
34#[ cfg( feature = "enabled" ) ]
35#[ doc( inline ) ]
36#[ allow( unused_imports ) ]
37pub use own::*;
38
39/// Own namespace of the module.
40#[ cfg( feature = "enabled" ) ]
41#[ allow( unused_imports ) ]
42pub mod own
43{
44  use super::*;
45  #[ doc( inline ) ]
46  pub use orphan::*;
47  #[ cfg( feature = "reflect_types" ) ]
48  #[ doc( inline ) ]
49  pub use super::reflect::orphan::*;
50}
51
52/// Orphan namespace of the module.
53#[ cfg( feature = "enabled" ) ]
54#[ allow( unused_imports ) ]
55pub mod orphan
56{
57  use super::*;
58  #[ doc( inline ) ]
59  pub use exposed::*;
60}
61
62/// Exposed namespace of the module.
63#[ cfg( feature = "enabled" ) ]
64#[ allow( unused_imports ) ]
65pub mod exposed
66{
67  use super::*;
68  #[ doc( inline ) ]
69  pub use prelude::*;
70
71  #[ cfg( feature = "reflect_types" ) ]
72  #[ doc( inline ) ]
73  pub use super::reflect::exposed::*;
74
75  // #[ cfg( any_derive ) ]
76  #[ doc( inline ) ]
77  pub use ::reflect_tools_meta::*;
78
79}
80
81/// Prelude to use essentials: `use my_module::prelude::*`.
82#[ cfg( feature = "enabled" ) ]
83#[ allow( unused_imports ) ]
84pub mod prelude
85{
86  use super::*;
87
88  #[ cfg( feature = "reflect_types" ) ]
89  #[ doc( inline ) ]
90  pub use super::reflect::prelude::*;
91
92}