issues
search
wjianbo
/
blog-data
0
stars
2
forks
source link
Rust学习笔记
#17
Closed
wjianbo
closed
1 year ago
wjianbo
commented
2 years ago
TODO
[ ] 《Rust编程之道》
[ ]
Learn Rust Programming Course – Interactive Rust Language Tutorial on Replit
[ ]
The Rust Programming Language
wjianbo
commented
2 years ago
《Rust编程之道》
Rust中没有传统面向对象语言中的继承概念。Rust通过trait将类型和行为明确区分,贯彻了
组合优于继承和面向接口编程
的编程思想。
返回值为类型为“!”的发散函数(diverging function)永远不会有任何返回值。
高阶函数是指以函数作为参数或返回值的函数。
問題点
访问者模式
wjianbo
commented
1 year ago
Web framework: Actix
hello-world
wjianbo
commented
1 year ago
Rc
stands for reference counting, and it is used in Rust to makes possibles a single values has multiples owners.
Arc
stands for Atomic Reference Counting, it is like the Rc, but with the possibility to work with threads.[^1]
[^1]:
Box, Rc, Arc, and the relation with threads.
TODO