typing_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/typing_tools/latest/typing_tools/" ) ]
5// #![ deny( rust_2018_idioms ) ]
6// #![ deny( missing_debug_implementations ) ]
7// #![ deny( missing_docs ) ]
8
9//!
10//! Collection of general purpose tools for type checking.
11//!
12
13#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]
14
15/// Collection of general purpose tools for type checking.
16#[ cfg( feature = "enabled" ) ]
17pub mod typing;
18
19/// Namespace with dependencies.
20
21#[ cfg( feature = "enabled" ) ]
22pub mod dependency
23{
24  #[ cfg( feature = "typing_inspect_type" ) ]
25  pub use ::inspect_type;
26  #[ cfg( feature = "typing_is_slice" ) ]
27  pub use ::is_slice;
28  #[ cfg( feature = "typing_implements" ) ]
29  pub use ::implements;
30}
31
32#[ doc( inline ) ]
33#[ allow( unused_imports ) ]
34#[ cfg( feature = "enabled" ) ]
35pub use own::*;
36
37/// Own namespace of the module.
38#[ cfg( feature = "enabled" ) ]
39#[ allow( unused_imports ) ]
40pub mod own
41{
42  use super::*;
43  #[ doc( inline ) ]
44  pub use orphan::*;
45  #[ doc( inline ) ]
46  #[ allow( unused_imports ) ]
47  pub use super::typing::orphan::*;
48}
49
50/// Orphan namespace of the module.
51#[ cfg( feature = "enabled" ) ]
52#[ allow( unused_imports ) ]
53pub mod orphan
54{
55  use super::*;
56  #[ doc( inline ) ]
57  pub use exposed::*;
58}
59
60/// Exposed namespace of the module.
61#[ cfg( feature = "enabled" ) ]
62#[ allow( unused_imports ) ]
63pub mod exposed
64{
65  use super::*;
66  #[ doc( inline ) ]
67  pub use prelude::*;
68  #[ doc( inline ) ]
69  #[ allow( unused_imports ) ]
70  pub use super::typing::exposed::*;
71}
72
73/// Prelude to use essentials: `use my_module::prelude::*`.
74#[ cfg( feature = "enabled" ) ]
75#[ allow( unused_imports ) ]
76pub mod prelude
77{
78  use super::*;
79  #[ doc( inline ) ]
80  #[ allow( unused_imports ) ]
81  pub use super::typing::prelude::*;
82}