Skip to content
loading...

&str和String

github logo ・1 min read  

Rust&str 是字面量值, 程序编译成二进制文件后,这个字符串会被保存在文件内部, 为了保持这个字符串在固定位置的引用, 所以要加引号.由于已经被保存在文件内变成了二进制, 所以不需要生命周期, 它是Static的, 整个程序的任何时候都能访问.

String 它其实是Vec的一种实现.

twitter logo DISCUSS
Classic DEV Post from Feb 20

Career Progression: What Does It Mean to You?

Does your organisation have a plan for career progression? Do you know the steps you need to take to level up?

sdttttt profile image
大部分文章都有参考网上的. 说到底也只是起一个笔记作用. 尽力做吧...

Sore eyes?

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️