String parsing in const code

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

Table of contents

#c++ #htmx #java #js #ml #polars #python #rust #testing

    2026

  1. 2025

  2. 2024

  3. 2023

  4. 2022

  5. 2021

  6. 2020

  7. 2019

  8. 2018

  9. 2017

  10. 2016

  11. 2015

  12. 2014

  13. 2013