Re:Box to Save Memory in Rust
by SkiFire13 on Monday April 27, 2026 @04:26AM
(#47919051)
Yes, naming does play a role here, but the biggest hint is `as_vec_mut` returning a reference. For that to work a `Vec<u8>` needs to exist somewhere, and continue to exist after this function returns. For comparison, `to_` conversions generally just return the new data, so this reasoning doesn't apply to them.
[ Parent
| on HN ]
There are no comments on this comment yet.