• 首页
  • 游戏制作Wiki
  • 关于
  • 关于
首页 分类 Rust 下的文章

Rust字符串(String与&str)

一般提到Rust字符串我们指的是两个类型:String(字符串类型)&str(字符串切片)字符串创建// 方法1 let s1 = String::from("hello"); // 方法2 let s1 = "hello".to_string();使用push_str更新字符串let mut s1 = String::from("foo&...

 Rust  2021-09-04 AM  819次  0条

 栏目分类

  •  Go11
  •  Wingo5
  •  Kubernetes2
  •  Linux运维8
  •  建木3
  •  树莓派1
  •  Rust1
  •  Xlib7
  •  RabbitMQ1
  •  Java8
  •  Spring3
  •  数据库1
  •  PostgreSQL1
  •  云平台4
  •  Typecho1
© 2025 Poweed by Typecho Theme by Echo