- String + String -> String:
1 | let s1 = "0"; |
- String + &str -> String:
1 | let s1: &str; |
- &str + &str -> String:
1 | let s1: &str; |
- String -> &str:
1 | let s: String; |
- String -> &[u8]:
1 | let s: String; |
- String -> &mut Vec< u8 >
1 | let s: String |
- &str -> String:
1 | let s: &str; |
- &[u8] -> String:
1 | let s: &[u8]; |
- Vec< u8 > -> String:
1 | let s: Vec<u8>; |
- 通过索引获取 String 中的 字符
1 | let s: String; |
- 遍历 String
1 | let s: String; |