Todo¶
- Rust - A taste of dependent types
- Dependently Typed Programming in Agda
- Why do slices in a structure require a lifetime, but not vectors?
- Rust to JS with Emscripten
- Rust’s decltype ?
- Wikipedia - Composition over inheritance
Books¶
Docs¶
- Cell
- Shareable mutable containers.
- boxed
- A pointer type for heap allocation.
- https://github.com/rust-lang/rust/blob/master/src/doc/trpl/box-syntax-and-patterns.md
- https://doc.rust-lang.org/std/boxed/struct.Box.html
Operator Overloading¶
Question¶
Python decorator like in Rust ?
a function return a function or value (in enum ?)
什麼時候會 move ? heap 的話呢 ?
- who is non-copyable ?
- euler.skip(1000-1) => this will move, non-copyable, why ?
stack check detail ?
gnerated assembly
tutorial from stack / heap status
ownership in mind programming
memory layout
tutorial with assembly
Any type’s pattern matching ?
repr
Things¶
- pub
- mod
- extern crate std;
- prelude
Notice¶
- 變數預設是不能更動的,要更改需要加上
mut
- Rust 的 reference 在 caller 跟 callee 都需加上 “&”,藉此可以確定自己在用 pass by reference
- 預設使用 jemalloc