Procedural macro for deriving the TypeName
trait.
Examples
use TypeName;
Procedural macro for deriving the TypeName
trait.
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>"));
}