Rust交叉编译初学

今天写了个TCP监控程序,想试试能不能交叉编译到其他平台。比如我的安卓手机(arrch64/arm架构)。 按照官网给的编译教程,先安装编译的

《C++Primer》笔记

变量 变量初始化 1 2 3 4 int n = 0; int n = {0}; int n{0}; int n(0); 花括号(列表初始化)会对初始化时类型转换进行检查,若数据信息丢失(舍去)会报错.C++11. 在

《精通Linux》笔记

很久之前就读了这本书,当时略看了一遍,觉得比较基础,面向新手,之后有想写读书笔记的想法,所以细看了一遍,感觉很多细节还是很讲的很清楚的。所以

Asciinemaplayer

asciinema home page Record a cast install a asciinema in you computer, and record a cast 1 asciinema rec hello.cast copy hello.cast to path-to-your-hugo/static/ascrec/ Use shortcode in your Markdown file 1 [[% asciinema cf="hello.cast" speed="2" theme="solarized-light" rows="20" %]] (To avoid Render, I use ‘[’ to replace ‘{’, you must replce again! ) result:

Rust中的枚举类2

好家伙,我还是低估了这奇怪的语法。 首先枚举里每个元素都是不同类型,可以由下面的几个trait推断出,行吧,这也不算奇怪。 1 2 3 4 5 6 7 enum Message {