3 ms·
Rust 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 w
by bilkow 5y ago
Rust 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.