In the last post, I looked into accessing characters at random byte-offsets in Rust strings.
That code used the structure of UTF-8 to find the start of a character and then assemble a Rust char from the underlying bytes.
Shortly after writing it, I found myself parsing strings in const code to validate identifiers at compile time.
In this post, I would like to show how the code of the last post can be adapted for const functions.
Read more