How do I make SampleType decompose into the type that is behind it (i.e. assert!(stringify!(SampleType) == "i8")? It would be much preferable to use a type alias as this type is used in different places arond the program, and is frequently changed. I cant seem to find out how to do this. Is this even possible?
It's not because macros don't know anything about types. They just receive the literal token SampleType and the compiler doesn't even know at that point what it actually is. What is the actual problem you're trying to solve here?