diff --git a/slides/functional_options_pattern_in_go/index.md b/slides/functional_options_pattern_in_go/index.md index e997140..f1bc68b 100644 --- a/slides/functional_options_pattern_in_go/index.md +++ b/slides/functional_options_pattern_in_go/index.md @@ -1,4 +1,5 @@ --- +title: A Trick for Designing Friendly APIs in Go theme: default layout: center class: text-center diff --git a/slides/yours_mine_ours/index.md b/slides/yours_mine_ours/index.md new file mode 100644 index 0000000..dcbd648 --- /dev/null +++ b/slides/yours_mine_ours/index.md @@ -0,0 +1,263 @@ +--- +title: "Yours, Mine, Ours" +theme: default +layout: center +fonts: + sans: "CaskaydiaCove Nerd Font Mono" +--- + +# Yours, Mine, Ours + +Understanding ownership and borrowing in Rust + +--- +layout: center +--- + +# Think about a book + +Rust treats data a lot like a physical book. + +--- +layout: center +--- + +# Three rules to remember + +
owner_one is the owner.
+ owner_one transferred ownership to owner_two.
+ owner_one is invalid now.
+ owner is the owner.
+ borrower borrows from owner.
+ owner is the owner.
+ borrower mutably borrows from owner.
+