Crates.io | u4 |
lib.rs | u4 |
version | 0.1.2 |
source | src |
created_at | 2024-06-16 19:36:34.847257 |
updated_at | 2024-09-05 13:44:23.925957 |
description | nibble (4-bit integer) library, with packed representations |
homepage | https://crates.io/crates/u4 |
repository | https://github.com/aatifsyed/u4 |
max_upload_size | |
id | 1273771 |
size | 46,291 |
A deep nibble (4-bit integer) library.
[U4
] is the actual nibble type, and offers common integer operations.
[U4x2
] packs two [U4
]s in a [u8
], useful for building your own primitives.
[AsNibbles
] allows you to view e.g [u8]
as a slice of [U4
]s.
[Stack
] is Heap-optimised stack of [U4
] which uses a packed
representation to half the memory usage of the equivalent [Vec<U4>
], but
with a less powerful API.