Diagnostic-purpose tools to inspect type of a variable and its size.
``` rust test
pub use inspect_type::*;
fn main() { inspecttypeof!( &[ 1, 2, 3 ][ .. ] ); // < sizeof( &[1, 2, 3][..] : &[i32] ) = 16 inspecttypeof!( &[ 1, 2, 3 ] ); // < sizeof( &[1, 2, 3] : &[i32; 3] ) = 8 } ```
shell test
git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/inspect_type_trivial
cargo run
shell
cargo add implements