News for hackers. Stuff that matters.
Re:Rusty Ownership and the Lifecycle’s Stone by estebank on Sunday November 27, 2022 @02:17PM (#33765720)
That method has been around since 1.0 (as documented in the source code). Were you using Rust before 2015? If so, a lot has changed :)
Re:Rusty Ownership and the Lifecycle’s Stone by loeg on Sunday November 27, 2022 @03:08PM (#33766286)
No, post-1.0. I don't remember exactly why I had to roll my own with unsafe, but it was essentially the same thing.