this post was submitted on 15 Mar 2026
69 points (97.3% liked)
Rust
7855 readers
95 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Since OP will want to do a lot of character based operations for the hangman game, she could also consider using
Vec<char>as an internal representation everywhere and only converting intoStringfor display purposes.I agree, this makes the most sense. I was under the assumption they wanted to keep it as a
String, but your suggestion is a better way to approach the problem if they're able to do that.