You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not explain how to get the name of a variable, but its type.
Fix
PR attached. The only other option beyond the stringify!() macro (which does not work where there is any indirection, like getting the name of a variable passed as a function parameter) is using the external syn crate, which is not ideal for most scenarios.
The text was updated successfully, but these errors were encountered:
Link to erroneous code
Explanation
This does not explain how to get the name of a variable, but its type.
Fix
PR attached. The only other option beyond the
stringify!()
macro (which does not work where there is any indirection, like getting the name of a variable passed as a function parameter) is using the externalsyn
crate, which is not ideal for most scenarios.The text was updated successfully, but these errors were encountered: