Rust 中有两种字符串类型: String 和 &str 。 String 被存储为由字节组成的vector( Vec<u8> ),但保证了它一定是一个有效的UTF-8 序列。 String 是堆分配的,可增长 ...
確定! 回上一頁