ttype 0.1.1

ttype - A quick macro for printing or returning the type of a variable
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 0 items with examples
  • Size
  • Source code size: 3.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.01 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • deg4uss3r/ttype
    0 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • deg4uss3r

ttype

A quick crate that creates a macro to print or return the type of a variable.

Right now this depends on the unstable fetaures type_name_of_val() so it will require both Rust Nightly and the #![feature(type_name_of_val)] attribute for your debugging needs.

Example:

#![feature(type_name_of_val)]
#[macro_use]
use ttype::ptype;

fn main() {
    let x = "Hello, world";

    //prints &str
    ptype!(&x);
}