Tour of Rust Table of Contents

Dereferencing

Using &mut references, you can set the owner's value using the * operator.

You can also get a copy of owned value using the * operator (if the value can be copied - we will discuss copyable types in later chapters).