This is a Rust port of the code used in Self-Referencing Embedded Strings (SELFIES): A 100% robust molecular string representation (link to paper) by Mario Krenn, Florian Haese, AkshatKumar Nigam, Pascal Friederich, Alan Aspuru-Guzik. The original code can be found here.