Expand description
The crate provides a macro to create a new enum type with a single field.
See the changelog for a full release history.
§Feature flags
docs
— Enables changelog and documentation of feature flags
§Why do we need this?
This is useful when you have a value and you want to have enum like behavior and have a catch all case for all other values.
§Examples
use nutype_enum::nutype_enum;
nutype_enum! {
pub enum AacPacketType(u8) {
SeqHdr = 0x0,
Raw = 0x1,
}
}
§License
This project is licensed under the MIT or Apache-2.0 license. You can choose between one of them if you use this work.
SPDX-License-Identifier: MIT OR Apache-2.0
Modules§
- changelog
- Changelogs generated by [scuffle_changelog]
Macros§
- nutype_
enum - Helper macro to create a new enum type with a single field.
- bitwise_
enum - Helper macro to create a bitwise enum.