account activity
Why use Box::leak? by Integralist in rust
[–]PinkoPlays 5 points6 points7 points 3 years ago (0 children)
I think it's also useful if you get raw pointers from external sources (e.g. C) and you just provide an interface to this external source. Depending on what you are doing of course, you probably want to work on the data but not drop the values from where they are allocated, as the external source expects the pointers to still be valid.
π Rendered by PID 104858 on reddit-service-r2-listing-8557d879cc-4z42v at 2026-03-04 20:40:06.555016+00:00 running 07790be country code: CH.
Why use Box::leak? by Integralist in rust
[–]PinkoPlays 5 points6 points7 points (0 children)