Expand description
Rust name_of! Macro
MIT License Copyright (c) 2018 SilentByte https://silentbyte.com/
Macrosยง
- name_of
- Takes a binding, type, const, or function as an argument and returns its
unqualified string representation. If the identifier does not exist
in the current context, the macro will cause a compilation error.
This macro is mainly intended for debugging purposes and to improve
the refactoring experience compared to plain
stringify!()
. - name_
of_ type - Takes the name of a type as its sole parameter,
e.g.
name_of_type!(SomeStruct)
orname_of_type!(f64)
.