#![ cfg_attr( feature = "no_std", no_std ) ]
#![ doc( html_logo_url = "https://raw.githubusercontent.com/Wandalen/wTools/master/asset/img/logo_v3_trans_square.png" ) ]
#![ doc( html_favicon_url = "https://raw.githubusercontent.com/Wandalen/wTools/alpha/asset/img/logo_v3_trans_square_icon_small_v2.ico" ) ]
#![ doc( html_root_url = "https://docs.rs/inspect_type/latest/inspect_type/" ) ]
#![ doc = include_str!( concat!( env!( "CARGO_MANIFEST_DIR" ), "/", "Readme.md" ) ) ]
#[ cfg( feature = "enabled" ) ]
pub( crate ) mod private
{
#[ macro_export ]
macro_rules! is_slice
{
( $V : expr ) =>
{{
use ::core::marker::PhantomData;
trait NotSlice
{
fn is_slice( self : &'_ Self ) -> bool { false }
}
impl< T > NotSlice
for &'_ PhantomData< T >
where T : ?Sized,
{}
trait Slice
{
fn is_slice( self : &'_ Self ) -> bool { true }
}
impl< 'a, T > Slice for PhantomData< &'a &[ T ] >
{}
fn does< T : Sized >( _ : &T ) -> PhantomData< &T >
{
PhantomData
}
( &does( &$V ) ).is_slice()
}}
}
pub use is_slice;
}
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
#[ cfg( feature = "enabled" ) ]
pub use protected::*;
#[ cfg( feature = "enabled" ) ]
pub mod protected
{
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::orphan::*;
}
#[ cfg( feature = "enabled" ) ]
pub mod orphan
{
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::exposed::*;
}
#[ cfg( feature = "enabled" ) ]
pub mod exposed
{
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::prelude::*;
}
#[ cfg( feature = "enabled" ) ]
pub mod prelude
{
#[ cfg( feature = "nightly" ) ]
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::nightly::*;
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use super::private::
{
is_slice,
};
}