Open arcnmx opened 2 years ago
Compile times seem to kind of blow up with too many generic impls, and it's not always worth the convenience.
Wrapper<Type>
TypeWrapper
Wrapper
data
IntWrapper
i32
i16
i8
u16
u8
StringWrapper
String
Box<str>
Cow<str>
&str
char
Type
base
Not all of this necessarily relates to performance, but in general the idea is to be a bit more conservative for the sake of simplicity.
Compile times seem to kind of blow up with too many generic impls, and it's not always worth the convenience.
Wrapper<Type>
type to replace anyTypeWrapper
structsWrapper
structs always name their single fielddata
TypeWrapper
rather than using complicated blanket impls.IntWrapper
:i32
i16
i8
u16
u8
StringWrapper
:String
Box<str>
Cow<str>
&str
char
Type
assuming a generic wrapper structbase
plus optional fieldsbase
and nothing elseNot all of this necessarily relates to performance, but in general the idea is to be a bit more conservative for the sake of simplicity.