any-pointer
any-pointer copied to clipboard
Provide specializations on
Quoting @SpexGuy:
This might not be the goal, but my version had separate types for SinglePointer, ManyPointer, Slice, etc. That allowed me to avoid serializing the pointer part of the type, so I could deserialize a *u32 as *const u32 or ?u32 without incurring a type violation. This meant extra code to strip attributes and optionals all the way down the type chain when creating type ids, so []?const u32 would be normalized to []*u32 and then I would use the type id of that.