Webusing std::mem::replace seems like hiding the unsafe (and possibly dangerous) operation of making the compiler forget the lifetime and assigning it our own behind a safe face.
Webmaybe it was partly from the “little house” series your mom read to you in bed each night, but more likely it was from melissa gilbert on nbc's tv show “little.