Closed
Description
The allocator-api currently only uses u8
as representation for a byte. I like to discuss if a type is worth to introduce (lets call it byte
here). This is basically an alternative to #66.
Advantages:
u8
is an unsigned number, which must not have uninitialized bits (see Clarify unsafe requirements of AllocRef #65)- Could be used in (many?) other places
- Could have own methods, which are dedicated to byte operations (
byte
or[byte]
+&
,*const
,*mut
,NonNull
)
Downsides:
- Introduces a new type or type alias
Metadata
Metadata
Assignees
Labels
No labels