Skip to content

Use enums for enumeration constants #254

Closed
@fiveop

Description

@fiveop

Just like we use bitflags! for flags, we could use enums for enumeration constants. They would provide a zero cost, type safe abstraction over the current primitive type constants.

A (partial) list of places to use enums:

  • sys::mman::MADV_*
  • sys::quota::Q_*
  • sys::signal::SIG*

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions