Macro type_name
Source macro_rules! type_name {
($e:expr) => { ... };
}
Expand description
Returns type name from the given value using
type_name.
ยงExamples
use my_ecs::type_name;
fn foo() {}
struct Bar;
let baz = 0;
println!("{}", type_name!(foo));
println!("{}", type_name!(Bar));
println!("{}", type_name!(baz));