Swaps the contents of this and rhs.
BasicString!char a = "1"; BasicString!char b = "2"; a.proxySwap(b); assert(a == "2"); assert(b == "1"); import std.algorithm.mutation : swap; swap(a, b); assert(a == "1"); assert(b == "2");
See Implementation
Swaps the contents of this and rhs.