Skip to content

Introduce a byte-type #68

Closed
Closed
@TimDiekmann

Description

@TimDiekmann

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions