typename_derive 0.1.4

Derive plugin for the typename crate.
Documentation

Procedural macro for deriving the TypeName trait.

Examples

use typename::TypeName;

#[derive(TypeName)]
struct Custom<T: TypeName> {
some_t: T,
}

fn main() {
assert_eq!(Custom::<i32>::type_name(), concat!(module_path!(), "::", "Custom<i32>"));
}