I suspect what you're looking for is Borrowing and consuming pattern matching for noncopyable types
1 Like
I suspect what you're looking for is Borrowing and consuming pattern matching for noncopyable types