![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Rust Study
文章平均质量分 68
jsjgogogo
这个作者很懒,什么都没留下…
展开
-
Rust: 引用与指针类型
指针类型Reference shared reference: &T immutable reference: &mut T Raw Pointer * const T: 对应于&T * mut T: 对应于&mut T Smart Pointer Box<T> Rc<T> ... Function PointerReference引用类型,prim...原创 2021-02-20 21:47:53 · 1702 阅读 · 2 评论 -
Rust doc 和注释的简单使用
Rust: doc and commentDoc command line:Build docs>Cargo docBuild docs and open in the browser >Cargo doc --openRust comment:Inner comment:// this is a line-comment/*This is a block-comment/*Outer comment:display in do...原创 2021-02-20 16:59:03 · 892 阅读 · 0 评论