Todo

Operator Overloading

RFCs

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

  • Why Rust?

Things

  • pub
  • mod
  • extern crate std;
  • prelude

Tips

  • wants to know the type of a variable in Rust ?
let () = asd;

Notice

  • 變數預設是不能更動的,要更改需要加上 mut
  • Rust 的 reference 在 caller 跟 callee 都需加上 “&”,藉此可以確定自己在用 pass by reference
  • 預設使用 jemalloc