Note that the matcher for union type is $parent:path all throughout; otherwise you get error: expected identifier, found STRUCT_NAME when attempting to expand the macro.
I have to admit I'm not sure what's the significance of this. (Original offset_of uses :path, tuple uses :ty)
Closes https://github.com/Gilnaa/memoffset/issues/66
Note that the matcher for union type is
$parent:path
all throughout; otherwise you geterror: expected identifier, found STRUCT_NAME
when attempting to expand the macro. I have to admit I'm not sure what's the significance of this. (Original offset_of uses:path
, tuple uses:ty
)