Concept Flow - Ownership and functions
Function called with ownership
Ownership moves to function parameter
Function uses the value
Function ends
Ownership dropped if not returned
Caller cannot use value unless ownership returned
When a function takes ownership of a value, the ownership moves into the function. After the function ends, if ownership is not returned, the caller loses access.
