1、常用函数 // 计算结构体内存占用大小 std::mem::size_of::<Foo>() 2、常用命令 2.1 宏展开 ~/Documents/work/test/rust/hello git:(master) ✗ cargo +nightly install cargo-expand ~/Documents/work/test/rust/hello git:(master) ✗ cargo expand --bin hello