Aliasing, Mutability, Containers and Pointers
T, &mut T, &T
In Rust, any arbitrary type T can either be owned as T itself, or used in two forms of aliases: &mut T and &T.
T: the owned value itself
&mut T: a mutable reference with write access to T
&T: an immutable reference that allows reading but no…
Read more...