There are two types of strings in Rust: String and &str . A String is stored as a vector of bytes ... Copy chars into a vector, sort and remove duplicates.
確定! 回上一頁