Understanding The UTF-8 Encoding Algorithm in Rust

Strings in Rust are UTF-8 encoded using the UTF-8 Encoding Algorithm, so understanding that algorithm is key to understanding how and work…