zombie110year / blog-source

https://blog.zombie110year.top
2 stars 1 forks source link

Rust 资源收集 #71

Open zombie110year opened 5 years ago

zombie110year commented 5 years ago

HTTP 客户端

https://github.com/sagebind/isahc

lib。使用体验类似于 Python 的 requests 库。

zombie110year commented 5 years ago

命令行参数解析工具

https://github.com/clap-rs/clap

lib。解析命令行参数,构建应用。

zombie110year commented 5 years ago

Terminal UI 工具

https://github.com/fdehau/tui-rs

其中 pancurses 后端支持 Unix 与 Windows

zombie110year commented 4 years ago

WebAssembly + HTML5 游戏引擎

https://github.com/PsichiX/Oxygengine

zombie110year commented 4 years ago

Rust 线性代数

https://nalgebra.org/

zombie110year commented 4 years ago

Rust 智能指针的解析

https://rust.cc/article?id=ac75148b-6eb0-4249-b36d-0a14875b736e

zombie110year commented 4 years ago

Rust Traits 解析:Eq 与 Ord

https://rust.cc/article?id=9a1990b9-e86a-46df-a3c3-fcfaff3c8533

Eq 与 PartialEq

Eq:

PartialEq:

手动实现 PartialEq 需要实现 eq(&self, other: T) 方法。 实现 Eq 的前提是已经实现了 PartialEq,因为实现 Eq 不需要额外的代码,只需要在实现了 PartialEq 的基础上告诉编译器它的比较满足反身性就可以了。对于上面的例子只需要:#[derive(Eq)]impl Eq for Book {}

Ord 与 PartialOrd

Ord(Total Ord):

PartialOrd 只需要满足反对称性与传递性:

zombie110year commented 4 years ago

Rust 的可变性解析

https://rust.cc/article?id=37d1cb4f-5cc9-4adc-b41a-dbe4914bf4b5

zombie110year commented 4 years ago

Python 与 Rust 互相访问

https://github.com/PyO3/PyO3

zombie110year commented 4 years ago

Rust 模块机制

https://zhuanlan.zhihu.com/p/73544030

zombie110year commented 4 years ago

C++ PDF 操作库

https://github.com/qpdf/qpdf