u4

Crates.iou4
lib.rsu4
version0.1.1
sourcesrc
created_at2024-06-16 19:36:34.847257
updated_at2024-06-21 18:47:07.85091
descriptionnibble (4-bit integer) library, with packed representations
homepagehttps://crates.io/crates/u4
repositoryhttps://github.com/aatifsyed/u4
max_upload_size
id1273771
size43,544
Aatif Syed (aatifsyed)

documentation

https://docs.rs/u4

README

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.

Commit count: 0

cargo fmt