More on ownership in Rust
mut // permission to modify
& // read-only access
&mut // exclusive write access
also...
v: &mut Vec<i32> // reference allows mutation of data
mut v: &mut Vec<i32> // reference variable itself is reassignable
More on ownership in Rust
mut // permission to modify
& // read-only access
&mut // exclusive write access
also...
v: &mut Vec<i32> // reference allows mutation of data
mut v: &mut Vec<i32> // reference variable itself is reassignable