Rust Get Char At Index

[Solved] Rust Get Char At Index | Haskell - Code Explorer | yomemimo.com
Question : rust get char at index

Answered by : yvesantoine-gangner

let byte: u8 = my_string.as_bytes()[i];

Source : https://users.rust-lang.org/t/accessing-the-char-at-a-byte-index/15398/2 | Last Update : Sat, 09 Apr 22

Answers related to rust get char at index

Code Explorer Popular Question For Haskell