typedef 0.1.0

Identify, compare types or print type names.
docs.rs failed to build typedef-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: typedef-0.3.2

TypeDef

Identify or compare types, get or print type names.

Build Status

Quick example

use typedef::{ TypeDef };

// type name querying:

assert!(TypeDef::name_of::<int>() == "int");

// and also type value:

let typedef = TypeDef::of::<int>();

assert!(typedef.is::<int>());
assert!(typedef.get_str() == "int");
assert!(typedef == TypeDef::of::<int>());

println!("type is {}", typedef);

Usage

Put this in your Cargo.toml:

[dependencies]
typedef = "*"

And this in your crate root:

extern crate typedef;

Resources

License

MIT