Ownership Rules
#Rust #Ownership
https://doc.rust-lang.org/stable/book/ch04-01-what-is-ownership.html#ownership-rules
Rust のそれぞれの値には Owner が存在する
1度に Owner は1つまで存在できる。重複はない。
Owner がスコープ外になると、値は捨てられる
Each value in Rust has an owner.
There can only be one owner at a time.
When the owner goes out of scope, the value will be dropped.
Variable Scope