Rust 有两种主要的字符串类型: &str 和 String 。让我们先看看 &str 。这叫做字符串片段(string slices)。字符串常量是 &'static str 类型的:
確定! 回上一頁