1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
//: - Licensing Information
/*
╭──────────────────────────────╮
╭─┤ SPDX-License-Identifier: MIT ├─────────────────────────────────────────────────╮
│ ╰──────────────────────────────╯ │
│ Hexadecimal Digits │
│ Provides uppercase and lowercase hexadecimal digit character tables │
│ │
│ Copyright © 2025 Rachael Ava │
│ │
│ ╭──────────────────────────────────────────────────────────────────────────────╮ │
│ │ Permission is hereby granted, free of charge, to any person obtaining a copy │ │
│ │ of this software and associated documentation files (the “Software”), to │ │
│ │ deal in the Software without restriction, including without limitation the │ │
│ │ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or │ │
│ │ sell copies of the Software, and to permit persons to whom the Software is │ │
│ │ furnished to do so, subject to the following conditions: │ │
│ │ │ │
│ │ The above copyright notice and this permission notice shall be included in │ │
│ │ all copies or substantial portions of the Software. │ │
│ │ │ │
│ │ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR │ │
│ │ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, │ │
│ │ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE │ │
│ │ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER │ │
│ │ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING │ │
│ │ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS │ │
│ │ IN THE SOFTWARE. │ │
│ ╰──────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────╯
*/
//: - Module Documentation
//!
//! # 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
//!
//! The hexadecimal digits are stored simply as an
//! [array](https://doc.rust-lang.org/std/primitive.array.html) of
//! [`char`](https://doc.rust-lang.org/std/primitive.char.html)s.
//! There's nothing fancy happening here. Just use them the same
//! way you would with other arrays.
//!
//! ### Importing
//!
//! You can import either the uppercase and/or lowercase modules like:
//!
//! ```rust
//! use hexadecimal_digits::{
//! lowercase,
//! uppercase,
//! };
//! ```
//!
//! ### Invocation
//!
//! When you need to use one of the arrays, you can invoke them like:
//!
//! ```rust
//! # use hexadecimal_digits::{
//! # lowercase,
//! # uppercase,
//! # };
//! #
//! # fn main() {
//! let lowercase_hexadecimal_a: char = lowercase::HEXADECIMAL_DIGITS[10];
//! let uppercase_hexadecimal_f: char = uppercase::HEXADECIMAL_DIGITS[15];
//! # }
//! ```
//!
//! ### Re-Exports
//!
//! If you don't like how long the array names are, re-exports of both
//! arrays with shorter names are available for you to use instead like:
//!
//! ```rust
//! # use hexadecimal_digits::{
//! # lowercase,
//! # uppercase,
//! # };
//! #
//! # fn main() {
//! let lowercase_hexadecimal_a: char = lowercase::HEX_DIGITS[10];
//! let uppercase_hexadecimal_f: char = uppercase::HEX_DIGITS[15];
//! # }
//! ```
//!
//! ### Custom Imports
//!
//! Of course, you can always import them however you want
//! and assign custom names for your own projects, like:
//!
//! ```rust
//! use hexadecimal_digits::lowercase::HEXADECIMAL_DIGITS as HEX_LOWER;
//! use hexadecimal_digits::uppercase::HEXADECIMAL_DIGITS as HEX_UPPER;
//! ```
//!
//! ## Example
//!
//! Here's an example of you can do with this crate:
//!
//! ### Hexadecimal Permutations
//!
//! This example generates all possible 8-bit hexadecimal numbers.
//!
//! ```rust
//! # use hexadecimal_digits::{
//! # lowercase,
//! # uppercase,
//! # };
//! #
//! # fn main() {
//! for digit_1 in lowercase::HEXADECIMAL_DIGITS {
//! for digit_2 in lowercase::HEXADECIMAL_DIGITS {
//! println!("{digit_1}{digit_2}");
//! }
//! }
//! # }
//! ```
//!
//: - Crate Attributes
//: - Import Modules
//: Local Moodules
///
/// Provides an array of lowercase hexadecimal digits
///
///
/// Provides an array of uppercase hexadecimal digits
///