> A 'swap' primitive is, like 'move', able to skip the step of refcounting its > referent (and zero-checking, conditionally branching to drop glue). It knows > that the referent has exactly as many references before the swap (or move) > as after.
Fair enough. Still, if swap can be implemented on top of move... _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
