#![ 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( not( RUSTC_IS_STABLE ) ) ]
mod nightly
{
#[ macro_export ]
macro_rules! inspect_to_str_type_of
{
( $src : expr ) =>
{{
let mut result = String::new();
let stringified = stringify!( $src );
let size = &std::mem::size_of_val( &$src ).to_string()[ .. ];
let type_name = std::any::type_name_of_val( &$src );
result.push_str( &format!( "sizeof( {} : {} ) = {}", stringified, type_name, size )[ .. ] );
result
}};
( $( $src : expr ),+ $(,)? ) =>
{
( $( $crate::dbg!( $src ) ),+ )
};
}
#[ macro_export ]
macro_rules! inspect_type_of
{
( $src : expr ) =>
{{
let result = $crate::inspect_to_str_type_of!( $src );
println!( "{}", result );
result
}}
}
pub use inspect_to_str_type_of;
pub use inspect_type_of;
}
#[ doc( inline ) ]
#[ allow( unused_imports ) ]
pub use own::*;
#[ allow( unused_imports ) ]
pub mod own
{
use super::*;
#[ doc( inline ) ]
pub use orphan::*;
}
#[ allow( unused_imports ) ]
pub mod orphan
{
use super::*;
#[ doc( inline ) ]
pub use exposed::*;
}
#[ allow( unused_imports ) ]
pub mod exposed
{
use super::*;
#[ doc( inline ) ]
pub use prelude::*;
}
#[ allow( unused_imports ) ]
pub mod prelude
{
use super::*;
#[ cfg( not( RUSTC_IS_STABLE ) ) ]
#[ doc( inline ) ]
pub use super::nightly::*;
}