memΒΆ

Utilities for advanced usage of ownership and borrowing.

Functions

mem_swap(x, y)

Swaps the values of two variables.

with_owned(val, f)

Runs a closure where the borrowed argument is promoted to an owned one.