Rust Get First Character Of StringAuthorsNameBrentTwitter@TwitterHow do I get the first character out of a string?If you want just the first char, you can use the iterator.fn main() { let text = "hello world!"; let ch = text.chars().next().unwrap(); println!("{}", ch); } Outputh