Crate pretty_bytes_typed

Source
Expand description

A simple, no-dependencies crate for converting a number of bytes into a strongly-typed (stack-allocated) representation of the “prettified” version of those bytes.

Compatible with serde when the serde feature is enabled.

Structs§

PrettyBytes
Struct that represents prettified byte values (base-10)
PrettyBytesBinary
Struct that represents prettified byte values (base-2)

Functions§

pretty_bytes
Convert a byte value to a “prettified” version
pretty_bytes_binary
Convert a byte value to a “prettified” version
pretty_bytes_signed
Convert a byte value to a “prettified” version, but accepts negative numbers
pretty_bytes_signed_binary
Convert a byte value to a “prettified” version, but accepts negative numbers