Stefan Plantikow wrote:
Just to be clear: Moving the data out of the Option<T> will even work when the Option<T> is embedded inside a uniquely owned struct without causing it to be copied?
Yes, so long as the uniquely owned struct is in a mutable location (for example, stored in a mutable local variable).
Niko _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
