3 ms·
I expect the special case handling for u8 to also apply to types that are just a strong typedef around u8.
by hsn915 5y ago
I expect the special case handling for u8 to also apply to types that are just a strong typedef around u8.
- bilkow 5y agoRust has "typedefs" and those are called type aliases. The intention of the newtype pattern is to specifically create a new type without the behaviour of the wrapped type, so if there's a special case just for u8, I would expect it not to be on the newtype.
- jcranberry 5y agoA "strong typedef" is not a typedef.