There are two types of strings in Rust: String and &str. A String is stored as a vector of bytes (Vec), but guaranteed to always be a valid UTF-8 sequence.
確定! 回上一頁