Tour of Rust Table of Contents

Moving Ownership

When an owner is passed as an argument to a function, ownership is moved to the function parameter.

After a move the variable in the original function can no longer be used.

Memory details: