#hex #digits #table #hex-digit

no-std hexadecimal-digits

Provides uppercase and lowercase hexadecimal digit character tables

1 unstable release

0.4.0 Jan 29, 2025

#524 in Development tools

MIT license

20KB

Hexadecimal Digits

Provides uppercase and lowercase hexadecimal digit character tables


Have you ever needed to build an array of hexadecimal digits, but you're too lazy to do it yourself? Well you've come to the right place! This Rust crate comes with both uppercase and lowercase arrays of all 16 hexadecimal digits!

Usage

Adding to your project

You can use cargo add hexadecimal-digits to add the crate to your project!

Using it in your project

After adding the crate to your project, you can import either the uppercase and/or lowercase modules:

use hexadecimal_digits::{
	lowercase,
	uppercase,
};

When you need to use one of the arrays, you can invoke them like this:

let hexadecimal_a: char = lowercase::HEXADECIMAL_DIGITS[10];

Licensing

This project is licensed under the terms of the MIT license.

No runtime deps