https://github.com/murphsicles/bitflags
Bit flag types for Zeta
https://github.com/murphsicles/bitflags
Last synced: 22 days ago
JSON representation
Bit flag types for Zeta
- Host: GitHub
- URL: https://github.com/murphsicles/bitflags
- Owner: murphsicles
- License: other
- Created: 2026-05-15T20:11:52.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-15T23:13:13.000Z (2 months ago)
- Last Synced: 2026-05-16T00:11:11.793Z (2 months ago)
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @std/bitflags — Bit Flag Types for Zeta
Auto-converted from [bitflags](https://crates.io/crates/bitflags) v2.11.1 via [Dark Factory](https://github.com/murphsicles/dark-factory).
## Features
- **bitflags! macro** — define type-safe bit flag structs
- **Full operations** — intersection, union, difference, symmetric difference, complement
- **Parser** — from_bits, from_name, from_bits_truncate, from_bits_retain
- **Iterator** — iterate over set flags
- **Formatting** — binary, octal, hex display, and custom formatting
- **Serde** — serialize/deserialize support
## Usage
```zeta
use @std/bitflags::bitflags;
bitflags! { struct Flags: u32 {
const A = 1;
const B = 2;
const C = 4;
const AB = Self::A.bits() | Self::B.bits();
}}
```
## Stats: 43 source files, ~1,451 lines, 0 unsupported items
## License
MIT